Update src/libcore/option.rs

Co-authored-by: Steve Klabnik <steve@steveklabnik.com>
This commit is contained in:
Faris Sufyan 2020-05-13 21:12:35 +08:00 committed by GitHub
parent 4588c26e53
commit a9e7d57238
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.