about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Povel <git@alexpovel.de>2023-07-16 19:55:03 +0200
committerAlex Povel <git@alexpovel.de>2023-07-16 19:55:03 +0200
commitd4184dde6a37ddac992db70a6f5f4e625bfb858c (patch)
tree13586840fe487dc1abca738943ac5019c43e824c
parent11da267fdb17371d60e6f555d4bcf35bf765d982 (diff)
downloadrust-d4184dde6a37ddac992db70a6f5f4e625bfb858c.tar.gz
rust-d4184dde6a37ddac992db70a6f5f4e625bfb858c.zip
Fix typo
-rw-r--r--library/core/src/result.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/result.rs b/library/core/src/result.rs
index 1ee270f4c03..51b7616ffec 100644
--- a/library/core/src/result.rs
+++ b/library/core/src/result.rs
@@ -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`],