Skip to content

Commit 5032a7b

Browse files
Rollup merge of #113762 - alexpovel:master, r=Nilstrieb
Fix typo Typo in a docstring, noticed [here](https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or).
2 parents bb50bd3 + d4184dd commit 5032a7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/result.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ impl<T, E> Result<T, E> {
749749
}
750750

751751
/// Returns the provided default (if [`Err`]), or
752-
/// applies a function to the contained value (if [`Ok`]),
752+
/// applies a function to the contained value (if [`Ok`]).
753753
///
754754
/// Arguments passed to `map_or` are eagerly evaluated; if you are passing
755755
/// the result of a function call, it is recommended to use [`map_or_else`],

0 commit comments

Comments
 (0)