File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1334,9 +1334,9 @@ impl<T: Copy> From<Cow<'_, [T]>> for Box<[T]> {
1334
1334
/// Converts a `Cow<'_, [T]>` into a `Box<[T]>`
1335
1335
///
1336
1336
/// When `cow` is the `Cow::Borrowed` variant, this
1337
- /// conversion allocates on the heap and performs a copy of the
1338
- /// underlying slice. Otherwise, it will try to re-use the owned
1339
- /// vec 's allocation.
1337
+ /// conversion allocates on the heap and copies the
1338
+ /// underlying slice. Otherwise, it will try to reuse the owned
1339
+ /// `Vec` 's allocation.
1340
1340
#[ inline]
1341
1341
fn from ( cow : Cow < ' _ , [ T ] > ) -> Box < [ T ] > {
1342
1342
match cow {
@@ -1372,7 +1372,7 @@ impl From<Cow<'_, str>> for Box<str> {
1372
1372
/// Converts a `Cow<'_, str>` into a `Box<str>`
1373
1373
///
1374
1374
/// When `cow` is the `Cow::Borrowed` variant, this
1375
- /// conversion allocates on the heap and performs a copy of the
1375
+ /// conversion allocates on the heap and copies the
1376
1376
/// underlying `str`. Otherwise, it will try to re-use the owned
1377
1377
/// `String`'s allocation.
1378
1378
///
You can’t perform that action at this time.
0 commit comments