Corrected type variable output T -> U in Result::map_or_else
This commit is contained in:
parent
3eda9058cf
commit
6ff4f7946f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue