about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-10-07 18:18:38 -0400
committerSteve Klabnik <steve@steveklabnik.com>2015-10-07 18:18:38 -0400
commitc66ff93da726228260c64339676d4d9740997072 (patch)
tree8c2434c06c54d06d36494ca3bea1ae53afed2d5d
parent4c8a0c0578861f31f63c165ab768c4b73be9b57f (diff)
parente84461a5c509240dfcc01a866a8c19bb9670d219 (diff)
downloadrust-c66ff93da726228260c64339676d4d9740997072.tar.gz
rust-c66ff93da726228260c64339676d4d9740997072.zip
Rollup merge of #28885 - frewsxcv:patch-25, r=alexcrichton
-rw-r--r--src/libcore/option.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcore/option.rs b/src/libcore/option.rs
index d1bb65d2290..0e4c6d1676e 100644
--- a/src/libcore/option.rs
+++ b/src/libcore/option.rs
@@ -706,7 +706,8 @@ impl<T> Option<T> {
 }
 
 impl<'a, T: Clone> Option<&'a T> {
-    /// Maps an Option<&T> to an Option<T> by cloning the contents of the Option.
+    /// Maps an `Option<&T>` to an `Option<T>` by cloning the contents of the
+    /// option.
     #[stable(feature = "rust1", since = "1.0.0")]
     pub fn cloned(self) -> Option<T> {
         self.map(|t| t.clone())