Specify 0 of type u32

This commit is contained in:
Camelid 2020-08-29 20:48:53 -07:00 committed by GitHub
parent 0d9a2abe69
commit 26eab6a0d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,8 +222,8 @@ mod prim_bool {}
///
/// The reason is that, in the first example, there are many possible types for `!` to coerce
/// to, because the function's return value is polymorphic. However, in the second example, the
/// other branch returns `0` which has a concrete type that `!` can be coerced to. See issue
/// [#36375] for more information on this quirk of `!`.
/// other branch returns a `0` of type `u32`, which is a concrete type that `!` can be coerced to.
/// See issue [#36375] for more information on this quirk of `!`.
///
/// [#36375]: https://github.com/rust-lang/rust/issues/36375
///