Alter formatting for words in Option::cloned doc comment

This commit is contained in:
Corey Farwell 2015-10-07 09:30:51 -04:00
parent d454c826f3
commit e84461a5c5

View file

@ -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())