fix wording in option doc
Fix some awkward wording in the `core::option` documentation in the "Options and pointers" section.
This commit is contained in:
parent
18049647e1
commit
cb65b48c06
@ -50,8 +50,8 @@
|
|||||||
//! the optional owned box, [`Option`]`<`[`Box<T>`]`>`.
|
//! the optional owned box, [`Option`]`<`[`Box<T>`]`>`.
|
||||||
//!
|
//!
|
||||||
//! The following example uses [`Option`] to create an optional box of
|
//! The following example uses [`Option`] to create an optional box of
|
||||||
//! [`i32`]. Notice that in order to use the inner [`i32`] value first, the
|
//! [`i32`]. Notice that in order to use the inner [`i32`] value, the
|
||||||
//! `check_optional` function needs to use pattern matching to
|
//! `check_optional` function first needs to use pattern matching to
|
||||||
//! determine whether the box has a value (i.e., it is [`Some(...)`][`Some`]) or
|
//! determine whether the box has a value (i.e., it is [`Some(...)`][`Some`]) or
|
||||||
//! not ([`None`]).
|
//! not ([`None`]).
|
||||||
//!
|
//!
|
||||||
|
Loading…
Reference in New Issue
Block a user