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:
Matthias Krüger 2023-07-17 00:14:07 +02:00 committed by GitHub
commit a7d31deb1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`],