We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b35e0b5 commit 0a538afCopy full SHA for 0a538af
core/src/option.rs
@@ -1350,7 +1350,7 @@ impl<'a, T> From<&'a Option<T>> for Option<&'a T> {
1350
///
1351
/// Converts an `Option<`[`String`]`>` into an `Option<`[`usize`]`>`, preserving the original.
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
+ /// so this technique uses `from` to first take an `Option` to a reference
1354
/// to the value inside the original.
1355
1356
/// [`map`]: Option::map
0 commit comments