Skip to content

Commit fd985e2

Browse files
authored
cannot have divergence -> cannot diverge
1 parent 4aae781 commit fd985e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/std/src/primitive_docs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ mod prim_bool {}
194194
/// # `!` and traits
195195
///
196196
/// When writing your own traits, `!` should have an `impl` whenever there is an obvious `impl`
197-
/// which doesn't `panic!`. The reason is that functions returning an `impl Trait` cannot have
198-
/// divergence, i.e., returning `!`, as their only possible code path. As an example, this code
199-
/// doesn't compile:
197+
/// which doesn't `panic!`. The reason is that functions returning an `impl Trait` cannot diverge,
198+
/// i.e., returning `!`, as their only possible code path. As an example, this code doesn't
199+
/// compile:
200200
///
201201
/// ```compile_fail
202202
/// use core::ops::Add;

0 commit comments

Comments
 (0)