]> 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:13:17 +0000 (21:13 +0800)
committerGitHub <noreply@github.com>
Wed, 13 May 2020 13:13:17 +0000 (21:13 +0800)
Co-authored-by: Steve Klabnik <steve@steveklabnik.com>
src/libcore/option.rs

index 340637a55f7e207d3bf4f43e1471536e4fd9bf07..a6a8d4bd7e1706029e5d36c309b838e0106336b0 100644 (file)
@@ -1399,7 +1399,7 @@ fn from(o: &'a Option<T>) -> Option<&'a T> {
 
 #[stable(feature = "option_ref_from_ref_option", since = "1.30.0")]
 impl<'a, T> From<&'a mut Option<T>> for Option<&'a mut T> {
-    /// Converts from &mut Option<T> to Option<&mut T>
+    /// Converts from `&mut Option<T>` to `Option<&mut T>`
     ///
     /// # Examples
     ///