diff options
| -rw-r--r-- | src/libcore/option.rs | 3 |
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()) |
