]> git.lizzy.rs Git - rust.git/commitdiff
Update src/libcore/option.rs
authorFaris Sufyan <47665123+Dolpheyn@users.noreply.github.com>
Wed, 13 May 2020 13:12:50 +0000 (21:12 +0800)
committerGitHub <noreply@github.com>
Wed, 13 May 2020 13:12:50 +0000 (21:12 +0800)
Co-authored-by: Steve Klabnik <steve@steveklabnik.com>
src/libcore/option.rs

index 3e64177a4676cd9bd145eed5e7201ea3ef0bda25..848560bd795d11ee9388dc114e8344fc98c169df 100644 (file)
@@ -1405,6 +1405,7 @@ impl<'a, T> From<&'a mut Option<T>> for Option<&'a mut T> {
     /// ```
     /// let mut s = Some(String::from("Hello"));
     /// let o: Option<&mut String> = Option::from(&mut s);
+    ///
     /// match o {
     ///     Some(t) => *t = String::from("Hello, Rustaceans!"),
     ///     None => (),