File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 50
50
//! the optional owned box, [`Option`]`<`[`Box<T>`]`>`.
51
51
//!
52
52
//! The following example uses [`Option`] to create an optional box of
53
- //! [`i32`]. Notice that in order to use the inner [`i32`] value first , the
54
- //! `check_optional` function needs to use pattern matching to
53
+ //! [`i32`]. Notice that in order to use the inner [`i32`] value, the
54
+ //! `check_optional` function first needs to use pattern matching to
55
55
//! determine whether the box has a value (i.e., it is [`Some(...)`][`Some`]) or
56
56
//! not ([`None`]).
57
57
//!
@@ -1350,7 +1350,7 @@ impl<'a, T> From<&'a Option<T>> for Option<&'a T> {
1350
1350
///
1351
1351
/// Converts an `Option<`[`String`]`>` into an `Option<`[`usize`]`>`, preserving the original.
1352
1352
/// The [`map`] method takes the `self` argument by value, consuming the original,
1353
- /// so this technique uses `as_ref ` to first take an `Option` to a reference
1353
+ /// so this technique uses `from ` to first take an `Option` to a reference
1354
1354
/// to the value inside the original.
1355
1355
///
1356
1356
/// [`map`]: Option::map
You can’t perform that action at this time.
0 commit comments