Skip to content

Commit

Permalink
Update src/libcore/option.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Klabnik <steve@steveklabnik.com>
  • Loading branch information
Dolpheyn and steveklabnik committed May 13, 2020
1 parent 4588c26 commit a9e7d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/option.rs
Expand Up @@ -1373,7 +1373,7 @@ impl<T> From<T> for Option<T> {

#[stable(feature = "option_ref_from_ref_option", since = "1.30.0")]
impl<'a, T> From<&'a Option<T>> for Option<&'a T> {
/// Converts from &Option<T> to Option<&T>
/// Converts from `&Option<T>` to `Option<&T>`.
///
/// # Examples
/// Converts an `Option<`[`String`]`>` into an `Option<`[`usize`]`>`, preserving the original.
Expand Down

0 comments on commit a9e7d57

Please sign in to comment.