mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
Alter formatting for words in Option::cloned doc comment
This commit is contained in:
@@ -706,7 +706,8 @@ pub fn as_slice(&self) -> &[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())
|
||||
|
||||
Reference in New Issue
Block a user