Skip to content

Commit 917489c

Browse files
committed
Rollup merge of #28885 - frewsxcv:patch-25, r=steveklabnik
2 parents a4774c2 + e84461a commit 917489c

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)