From fa5a2128963177b050958077f78699ca80370204 Mon Sep 17 00:00:00 2001 From: Tim McNamara Date: Sat, 9 Oct 2021 20:51:36 +1300 Subject: [PATCH] Simplify wording MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Josh Triplett Co-authored-by: Laurențiu Nicola --- library/alloc/src/boxed.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs index 1eff1f9e307..f47be508983 100644 --- a/library/alloc/src/boxed.rs +++ b/library/alloc/src/boxed.rs @@ -1334,9 +1334,9 @@ impl From> for Box<[T]> { /// Converts a `Cow<'_, [T]>` into a `Box<[T]>` /// /// When `cow` is the `Cow::Borrowed` variant, this - /// conversion allocates on the heap and performs a copy of the - /// underlying slice. Otherwise, it will try to re-use the owned - /// vec's allocation. + /// conversion allocates on the heap and copies the + /// underlying slice. Otherwise, it will try to reuse the owned + /// `Vec`'s allocation. #[inline] fn from(cow: Cow<'_, [T]>) -> Box<[T]> { match cow { @@ -1372,7 +1372,7 @@ impl From> for Box { /// Converts a `Cow<'_, str>` into a `Box` /// /// When `cow` is the `Cow::Borrowed` variant, this - /// conversion allocates on the heap and performs a copy of the + /// conversion allocates on the heap and copies the /// underlying `str`. Otherwise, it will try to re-use the owned /// `String`'s allocation. ///