mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
Fix typo
This commit is contained in:
@@ -749,7 +749,7 @@ pub fn map<U, F: FnOnce(T) -> U>(self, op: F) -> Result<U, 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`],
|
||||
|
||||
Reference in New Issue
Block a user