Auto merge of #27122 - nham:tweak-cow-docs, r=Gankro
It seems slightly more consistent to say 'Clones' here instead of 'Copies'. The docs for the `ToOwned` trait talk about cloning and not copying.
This commit is contained in:
@@ -215,7 +215,7 @@ impl<'a, B: ?Sized> Clone for Cow<'a, B> where B: ToOwned {
|
|||||||
impl<'a, B: ?Sized> Cow<'a, B> where B: ToOwned {
|
impl<'a, B: ?Sized> Cow<'a, B> where B: ToOwned {
|
||||||
/// Acquires a mutable reference to the owned form of the data.
|
/// Acquires a mutable reference to the owned form of the data.
|
||||||
///
|
///
|
||||||
/// Copies the data if it is not already owned.
|
/// Clones the data if it is not already owned.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
@@ -241,7 +241,7 @@ impl<'a, B: ?Sized> Cow<'a, B> where B: ToOwned {
|
|||||||
|
|
||||||
/// Extracts the owned data.
|
/// Extracts the owned data.
|
||||||
///
|
///
|
||||||
/// Copies the data if it is not already owned.
|
/// Clones the data if it is not already owned.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user