From c3dfda0e3d9f006b9f279d263b88db9a13861037 Mon Sep 17 00:00:00 2001 From: Orson Peters Date: Thu, 9 Sep 2021 11:46:22 +0200 Subject: [PATCH] Rebase Result::map_or_else doc wording on top of #89400. --- library/core/src/result.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/library/core/src/result.rs b/library/core/src/result.rs index c9c2d2e645ace..dda827900d959 100644 --- a/library/core/src/result.rs +++ b/library/core/src/result.rs @@ -795,9 +795,8 @@ impl Result { } } - /// Maps a `Result` to `U` by applying a provided default fallback - /// function to a contained [`Err`] value, or a provided function to a - /// contained [`Ok`] value. + /// Maps a `Result` to `U` by applying fallback function `default` to + /// a contained [`Err`] value, or function `f` to a contained [`Ok`] value. /// /// This function can be used to unpack a successful result /// while handling an error.