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.
1 parent 644bb24 commit adc2bf0Copy full SHA for adc2bf0
src/libcore/option.rs
@@ -1376,6 +1376,7 @@ impl<'a, T> From<&'a Option<T>> for Option<&'a T> {
1376
/// Converts from `&Option<T>` to `Option<&T>`.
1377
///
1378
/// # Examples
1379
+ ///
1380
/// Converts an `Option<`[`String`]`>` into an `Option<`[`usize`]`>`, preserving the original.
1381
/// The [`map`] method takes the `self` argument by value, consuming the original,
1382
/// so this technique uses `as_ref` to first take an `Option` to a reference
0 commit comments