summaryrefslogtreecommitdiff
path: root/src/libcore/result.rs
diff options
context:
space:
mode:
authorIsaac van Bakel <ivb@vanbakel.io>2018-08-29 22:55:21 +0100
committerIsaac van Bakel <ivb@vanbakel.io>2018-08-29 22:55:21 +0100
commit6ff4f7946fc6c8dc6a199ef297bf0b4bc8aeafe0 (patch)
treed965df68f1ea3848758943398443592b703d1055 /src/libcore/result.rs
parent3eda9058cfd6f42a0b2b46ad2605f0dc52981a77 (diff)
downloadrust-6ff4f7946fc6c8dc6a199ef297bf0b4bc8aeafe0.tar.gz
Corrected type variable output T -> U in Result::map_or_else
Diffstat (limited to 'src/libcore/result.rs')
-rw-r--r--src/libcore/result.rs2
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.
///