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).
This commit is contained in:
commit
a7d31deb1d
@ -749,7 +749,7 @@ impl<T, E> Result<T, E> {
|
||||
}
|
||||
|
||||
/// Returns the provided default (if [`Err`]), or
|
||||
/// applies a function to the contained value (if [`Ok`]),
|
||||
/// applies a function to the contained value (if [`Ok`]).
|
||||
///
|
||||
/// Arguments passed to `map_or` are eagerly evaluated; if you are passing
|
||||
/// the result of a function call, it is recommended to use [`map_or_else`],
|
||||
|
Loading…
x
Reference in New Issue
Block a user