We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d454c82 commit e84461aCopy full SHA for e84461a
src/libcore/option.rs
@@ -706,7 +706,8 @@ impl<T> Option<T> {
706
}
707
708
impl<'a, T: Clone> Option<&'a T> {
709
- /// 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
710
+ /// option.
711
#[stable(feature = "rust1", since = "1.0.0")]
712
pub fn cloned(self) -> Option<T> {
713
self.map(|t| t.clone())
0 commit comments