diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-10-07 18:18:38 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-10-07 18:18:38 -0400 |
| commit | c66ff93da726228260c64339676d4d9740997072 (patch) | |
| tree | 8c2434c06c54d06d36494ca3bea1ae53afed2d5d | |
| parent | 4c8a0c0578861f31f63c165ab768c4b73be9b57f (diff) | |
| parent | e84461a5c509240dfcc01a866a8c19bb9670d219 (diff) | |
| download | rust-c66ff93da726228260c64339676d4d9740997072.tar.gz rust-c66ff93da726228260c64339676d4d9740997072.zip | |
Rollup merge of #28885 - frewsxcv:patch-25, r=alexcrichton
| -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()) |
