Corrected type variable output T -> U in Result::map_or_else

This commit is contained in:
Isaac van Bakel 2018-08-29 22:55:21 +01:00
parent 3eda9058cf
commit 6ff4f7946f

View File

@ -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.
///