other branch -> else branch

This commit is contained in:
Camelid 2020-08-29 20:53:40 -07:00 committed by GitHub
parent 80dcad9e5b
commit bd3196282b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -222,7 +222,7 @@ mod prim_bool {}
///
/// The reason is that, in the first example, there are many possible types that `!` could coerce
/// to, because the function can return one of many concrete types. However, in the second example,
/// the other branch returns a `0` of type `u32`, which is a concrete type that `!` can be coerced
/// the `else` 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