Alter formatting for words in Option::cloned doc comment
This commit is contained in:
parent
d454c826f3
commit
e84461a5c5
1 changed files with 2 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue