We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 15ad83f + 4814fa4 commit c869937Copy full SHA for c869937
src/libcore/option.rs
@@ -60,7 +60,7 @@
60
//! the optional owned box, [`Option`]`<`[`Box<T>`]`>`.
61
//!
62
//! The following example uses [`Option`] to create an optional box of
63
-//! [`i32`]. Notice that in order to use the inner [`i32`] value first the
+//! [`i32`]. Notice that in order to use the inner [`i32`] value first, the
64
//! `check_optional` function needs to use pattern matching to
65
//! determine whether the box has a value (i.e. it is [`Some(...)`][`Some`]) or
66
//! not ([`None`]).
@@ -74,8 +74,8 @@
74
75
//! fn check_optional(optional: &Option<Box<i32>>) {
76
//! match *optional {
77
-//! Some(ref p) => println!("have value {}", p),
78
-//! None => println!("have no value"),
+//! Some(ref p) => println!("has value {}", p),
+//! None => println!("has no value"),
79
//! }
80
81
//! ```
0 commit comments