This commit is contained in:
Alex Povel
2023-07-16 19:55:03 +02:00
parent 11da267fdb
commit d4184dde6a
+1 -1
View File
@@ -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`],