diff options
| author | Taylor Yu <tlyu@mit.edu> | 2021-06-10 22:25:11 -0500 |
|---|---|---|
| committer | Taylor Yu <tlyu@mit.edu> | 2021-06-10 22:30:00 -0500 |
| commit | cb65b48c06406efd21c96372fff2840c957c8798 (patch) | |
| tree | 3b960f4aff9755b14c6e9a7a384902eab632d423 | |
| parent | 18049647e1a9817bfb6827920903fd717e5cbfcc (diff) | |
| download | rust-cb65b48c06406efd21c96372fff2840c957c8798.tar.gz rust-cb65b48c06406efd21c96372fff2840c957c8798.zip | |
fix wording in option doc
Fix some awkward wording in the `core::option` documentation in the "Options and pointers" section.
| -rw-r--r-- | library/core/src/option.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/option.rs b/library/core/src/option.rs index 4e7afca6a49..0dd182203df 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -50,8 +50,8 @@ //! the optional owned box, [`Option`]`<`[`Box<T>`]`>`. //! //! The following example uses [`Option`] to create an optional box of -//! [`i32`]. Notice that in order to use the inner [`i32`] value first, the -//! `check_optional` function needs to use pattern matching to +//! [`i32`]. Notice that in order to use the inner [`i32`] value, the +//! `check_optional` function first needs to use pattern matching to //! determine whether the box has a value (i.e., it is [`Some(...)`][`Some`]) or //! not ([`None`]). //! |
