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.