about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFaris Sufyan <47665123+Dolpheyn@users.noreply.github.com>2020-05-13 21:13:08 +0800
committerGitHub <noreply@github.com>2020-05-13 21:13:08 +0800
commitadc2bf0cfe3f4c6611ebcd80b570ed8ebd76b548 (patch)
tree10246064e968c3c861ab8b0c36860d0a4a5b85ad /src
parent644bb24e335bd15c7c90a2c31afa63d9ba5f5dbc (diff)
downloadrust-adc2bf0cfe3f4c6611ebcd80b570ed8ebd76b548.tar.gz
rust-adc2bf0cfe3f4c6611ebcd80b570ed8ebd76b548.zip
Update src/libcore/option.rs
Co-authored-by: Steve Klabnik <steve@steveklabnik.com>
Diffstat (limited to 'src')
-rw-r--r--src/libcore/option.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/option.rs b/src/libcore/option.rs
index 848560bd795..340637a55f7 100644
--- a/src/libcore/option.rs
+++ b/src/libcore/option.rs
@@ -1376,6 +1376,7 @@ impl<'a, T> From<&'a Option<T>> for Option<&'a T> {
     /// Converts from `&Option<T>` to `Option<&T>`.
     ///
     /// # Examples
+    ///
     /// Converts an `Option<`[`String`]`>` into an `Option<`[`usize`]`>`, preserving the original.
     /// The [`map`] method takes the `self` argument by value, consuming the original,
     /// so this technique uses `as_ref` to first take an `Option` to a reference