Skip to content

Commit

Permalink
Rebase Result::map_or_else doc wording on top of #89400.
Browse files Browse the repository at this point in the history
  • Loading branch information
orlp committed Oct 6, 2021
1 parent 98a5a98 commit c3dfda0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions library/core/src/result.rs
Expand Up @@ -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.
Expand Down

0 comments on commit c3dfda0

Please sign in to comment.