Skip to content

Commit c66ff93

Browse files
committed
Rollup merge of #28885 - frewsxcv:patch-25, r=alexcrichton
2 parents 4c8a0c0 + e84461a commit c66ff93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcore/option.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,8 @@ impl<T> Option<T> {
706706
}
707707

708708
impl<'a, T: Clone> Option<&'a T> {
709-
/// Maps an Option<&T> to an Option<T> by cloning the contents of the Option.
709+
/// Maps an `Option<&T>` to an `Option<T>` by cloning the contents of the
710+
/// option.
710711
#[stable(feature = "rust1", since = "1.0.0")]
711712
pub fn cloned(self) -> Option<T> {
712713
self.map(|t| t.clone())

0 commit comments

Comments
 (0)