about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-07-17 00:14:07 +0200
committerGitHub <noreply@github.com>2023-07-17 00:14:07 +0200
commita7d31deb1defedc15f0f30d84d9c08c2ddb70444 (patch)
tree9ca67e1c5077d8145f07c95f2c824b7d89ee7619
parentd52865100a307383b3c58b429e74c6ad2133c736 (diff)
parentd4184dde6a37ddac992db70a6f5f4e625bfb858c (diff)
downloadrust-a7d31deb1defedc15f0f30d84d9c08c2ddb70444.tar.gz
rust-a7d31deb1defedc15f0f30d84d9c08c2ddb70444.zip
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).
-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`],