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.
2 parents 4c8a0c0 + e84461a commit c66ff93Copy full SHA for c66ff93
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