Corrected type variable output T -> U in Result::map_or_else
This commit is contained in:
parent
3eda9058cf
commit
6ff4f7946f
@ -470,7 +470,7 @@ impl<T, E> Result<T, E> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Maps a `Result<T, E>` to `T` by applying a function to a
|
||||
/// Maps a `Result<T, E>` to `U` by applying a function to a
|
||||
/// contained [`Ok`] value, or a fallback function to a
|
||||
/// contained [`Err`] value.
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user