about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTaylor Yu <tlyu@mit.edu>2021-06-10 22:25:11 -0500
committerTaylor Yu <tlyu@mit.edu>2021-06-10 22:30:00 -0500
commitcb65b48c06406efd21c96372fff2840c957c8798 (patch)
tree3b960f4aff9755b14c6e9a7a384902eab632d423
parent18049647e1a9817bfb6827920903fd717e5cbfcc (diff)
downloadrust-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.rs4
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`]).
 //!