diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-07-17 00:14:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-17 00:14:07 +0200 |
| commit | a7d31deb1defedc15f0f30d84d9c08c2ddb70444 (patch) | |
| tree | 9ca67e1c5077d8145f07c95f2c824b7d89ee7619 | |
| parent | d52865100a307383b3c58b429e74c6ad2133c736 (diff) | |
| parent | d4184dde6a37ddac992db70a6f5f4e625bfb858c (diff) | |
| download | rust-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.rs | 2 |
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`], |
