Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit adc2bf0

Browse files
Update src/libcore/option.rs
Co-authored-by: Steve Klabnik <steve@steveklabnik.com>
1 parent 644bb24 commit adc2bf0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/option.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,6 +1376,7 @@ impl<'a, T> From<&'a Option<T>> for Option<&'a T> {
13761376
/// Converts from `&Option<T>` to `Option<&T>`.
13771377
///
13781378
/// # Examples
1379+
///
13791380
/// Converts an `Option<`[`String`]`>` into an `Option<`[`usize`]`>`, preserving the original.
13801381
/// The [`map`] method takes the `self` argument by value, consuming the original,
13811382
/// so this technique uses `as_ref` to first take an `Option` to a reference

0 commit comments

Comments
 (0)