about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFaris Sufyan <47665123+Dolpheyn@users.noreply.github.com>2020-05-13 21:13:27 +0800
committerGitHub <noreply@github.com>2020-05-13 21:13:27 +0800
commitef1688db8e33b635287462854b7203f86c7acbf5 (patch)
tree54e448511da42bda5bdd1a31d286fc0ea85821c9
parentf445a8286e4d889ac33935768f2ac0823b2c01ba (diff)
downloadrust-ef1688db8e33b635287462854b7203f86c7acbf5.tar.gz
rust-ef1688db8e33b635287462854b7203f86c7acbf5.zip
Update src/libcore/option.rs
Co-authored-by: Steve Klabnik <steve@steveklabnik.com>
-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 a6a8d4bd7e1..ebaa4894862 100644
--- a/src/libcore/option.rs
+++ b/src/libcore/option.rs
@@ -1411,6 +1411,7 @@ impl<'a, T> From<&'a mut Option<T>> for Option<&'a mut T> {
     ///     Some(t) => *t = String::from("Hello, Rustaceans!"),
     ///     None => (),
     /// }
+    ///
     /// assert_eq!(s, Some(String::from("Hello, Rustaceans!")));
     /// ```
     fn from(o: &'a mut Option<T>) -> Option<&'a mut T> {