diff options
| -rw-r--r-- | library/core/src/result.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/library/core/src/result.rs b/library/core/src/result.rs index c9c2d2e645a..dda827900d9 100644 --- a/library/core/src/result.rs +++ b/library/core/src/result.rs @@ -795,9 +795,8 @@ impl<T, E> Result<T, E> { } } - /// Maps a `Result<T, E>` 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<T, E>` 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. |
