Skip to content

Commit c4c058c

Browse files
camelidJoshua Nelson
and
Joshua Nelson
committed
Improve wording
Co-authored-by: Joshua Nelson <[email protected]>
1 parent cdd6f11 commit c4c058c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/primitive_docs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ mod prim_bool {}
220220
/// ```
221221
///
222222
/// The reason is that, in the first example, there are many possible types that `!` could coerce
223-
/// to, because the function can return one of many concrete types. However, in the second example,
223+
/// to, because many types implement `Add<u32>`. However, in the second example,
224224
/// the `else` branch returns a `0`, which the compiler infers from the return type to be of type
225-
/// `u32`, which is a concrete type that `!` can be coerced to. See issue [#36375] for more
225+
/// `u32`. Since `u32` is a concrete type, `!` can and will be coerced to it. See issue [#36375] for more
226226
/// information on this quirk of `!`.
227227
///
228228
/// [#36375]: https://github.com/rust-lang/rust/issues/36375

0 commit comments

Comments
 (0)