diff options
| author | Lokathor <zefria@gmail.com> | 2024-05-25 16:04:26 -0600 |
|---|---|---|
| committer | Lokathor <zefria@gmail.com> | 2024-05-25 16:04:26 -0600 |
| commit | 2e8f14fb371c13ee196e48caaefcfd749d04759f (patch) | |
| tree | cb918dc3ef8de4bcf9986f968e3f43cd1c7c43fb /library/core/src | |
| parent | 22668e83f6b179ba3fd6f985a332e1cd2022af79 (diff) | |
| download | rust-2e8f14fb371c13ee196e48caaefcfd749d04759f.tar.gz rust-2e8f14fb371c13ee196e48caaefcfd749d04759f.zip | |
correct for copy paste errors when fixing wrapping.
Diffstat (limited to 'library/core/src')
| -rw-r--r-- | library/core/src/result.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/core/src/result.rs b/library/core/src/result.rs index 77c4ef957ac..b40a585699b 100644 --- a/library/core/src/result.rs +++ b/library/core/src/result.rs @@ -13,7 +13,7 @@ //! } //! ``` //! -//! Functions return [`Result`] whenever errors are expected and recoverable. In +//! Functions return [`Result`] whenever errors are expected and //! recoverable. In the `std` crate, [`Result`] is most prominently used //! for [I/O](../../std/io/index.html). //! @@ -40,7 +40,7 @@ //! } //! ``` //! -//! Pattern matching on [`Result`]s is clear and straightforward for simple +//! Pattern matching on [`Result`]s is clear and straightforward for //! simple cases, but [`Result`] comes with some convenience methods //! that make working with it more succinct. //! @@ -247,13 +247,13 @@ //! //! # Method overview //! -//! In addition to working with pattern matching, [`Result`] provides a wide -//! variety of different methods. +//! In addition to working with pattern matching, [`Result`] provides a +//! wide variety of different methods. //! //! ## Querying the variant //! -//! In addition to working with pattern matching, [`Result`] provides a -//! wide variety of different methods. +//! The [`is_ok`] and [`is_err`] methods return [`true`] if the [`Result`] +//! is [`Ok`] or [`Err`], respectively. //! //! [`is_err`]: Result::is_err //! [`is_ok`]: Result::is_ok |
