From 6ff4f7946fc6c8dc6a199ef297bf0b4bc8aeafe0 Mon Sep 17 00:00:00 2001 From: Isaac van Bakel Date: Wed, 29 Aug 2018 22:55:21 +0100 Subject: [PATCH] Corrected type variable output T -> U in Result::map_or_else --- src/libcore/result.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/result.rs b/src/libcore/result.rs index 22a7cedc189ba..04e3b502ed8b9 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -470,7 +470,7 @@ impl Result { } } - /// Maps a `Result` to `T` by applying a function to a + /// Maps a `Result` to `U` by applying a function to a /// contained [`Ok`] value, or a fallback function to a /// contained [`Err`] value. ///