Skip to content

Commit 837a032

Browse files
authored
Rollup merge of rust-lang#88772 - orlp:result-map-or-else-docfix, r=yaahc
Fixed confusing wording on Result::map_or_else. Fixes rust-lang#88195.
2 parents ed501a9 + c3dfda0 commit 837a032

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/core/src/result.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -795,9 +795,8 @@ impl<T, E> Result<T, E> {
795795
}
796796
}
797797

798-
/// Maps a `Result<T, E>` to `U` by applying a provided default fallback
799-
/// function to a contained [`Err`] value, or a provided function to a
800-
/// contained [`Ok`] value.
798+
/// Maps a `Result<T, E>` to `U` by applying fallback function `default` to
799+
/// a contained [`Err`] value, or function `f` to a contained [`Ok`] value.
801800
///
802801
/// This function can be used to unpack a successful result
803802
/// while handling an error.

0 commit comments

Comments
 (0)