Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 65726c0

Browse files
committedMay 25, 2024
correct for copy paste errors when fixing wrapping.
1 parent 613145f commit 65726c0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎core/src/result.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//! }
1414
//! ```
1515
//!
16-
//! Functions return [`Result`] whenever errors are expected and recoverable. In
16+
//! Functions return [`Result`] whenever errors are expected and
1717
//! recoverable. In the `std` crate, [`Result`] is most prominently used
1818
//! for [I/O](../../std/io/index.html).
1919
//!
@@ -40,7 +40,7 @@
4040
//! }
4141
//! ```
4242
//!
43-
//! Pattern matching on [`Result`]s is clear and straightforward for simple
43+
//! Pattern matching on [`Result`]s is clear and straightforward for
4444
//! simple cases, but [`Result`] comes with some convenience methods
4545
//! that make working with it more succinct.
4646
//!
@@ -247,13 +247,13 @@
247247
//!
248248
//! # Method overview
249249
//!
250-
//! In addition to working with pattern matching, [`Result`] provides a wide
251-
//! variety of different methods.
250+
//! In addition to working with pattern matching, [`Result`] provides a
251+
//! wide variety of different methods.
252252
//!
253253
//! ## Querying the variant
254254
//!
255-
//! In addition to working with pattern matching, [`Result`] provides a
256-
//! wide variety of different methods.
255+
//! The [`is_ok`] and [`is_err`] methods return [`true`] if the [`Result`]
256+
//! is [`Ok`] or [`Err`], respectively.
257257
//!
258258
//! [`is_err`]: Result::is_err
259259
//! [`is_ok`]: Result::is_ok

0 commit comments

Comments
 (0)
Failed to load comments.