diff options
author | Isaac van Bakel <ivb@vanbakel.io> | 2018-08-29 22:55:21 +0100 |
---|---|---|
committer | Isaac van Bakel <ivb@vanbakel.io> | 2018-08-29 22:55:21 +0100 |
commit | 6ff4f7946fc6c8dc6a199ef297bf0b4bc8aeafe0 (patch) | |
tree | d965df68f1ea3848758943398443592b703d1055 | |
parent | 3eda9058cfd6f42a0b2b46ad2605f0dc52981a77 (diff) | |
download | rust-6ff4f7946fc6c8dc6a199ef297bf0b4bc8aeafe0.tar.gz |
Corrected type variable output T -> U in Result::map_or_else
-rw-r--r-- | src/libcore/result.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/result.rs b/src/libcore/result.rs index 22a7cedc189..04e3b502ed8 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -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. /// |