Skip to content

Commit

Permalink
Alter formatting for words in Option::cloned doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed Oct 7, 2015
1 parent d454c82 commit e84461a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libcore/option.rs
Expand Up @@ -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())
Expand Down

0 comments on commit e84461a

Please sign in to comment.