diff options
| author | Michael Howell <michael@notriddle.com> | 2021-03-25 02:58:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-25 02:58:34 -0700 |
| commit | ef1bd5776d9ba162a275772a8a31fa9d6b463e0a (patch) | |
| tree | ed0df0518add0b023aa434892233e4a1ffd593d4 | |
| parent | b3321e286013f14e20241706ef738d868fe7e91d (diff) | |
| download | rust-ef1bd5776d9ba162a275772a8a31fa9d6b463e0a.tar.gz rust-ef1bd5776d9ba162a275772a8a31fa9d6b463e0a.zip | |
Change wording
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index 69df60a7c3e..ff93c772b5b 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -2795,8 +2795,8 @@ where #[cfg(not(test))] #[stable(feature = "vec_from_box", since = "1.18.0")] impl<T, A: Allocator> From<Box<[T], A>> for Vec<T, A> { - /// Convert a boxed slice into a vector. - /// No heap allocation is performed, and the items are not copied. + /// Convert a boxed slice into a vector by transferring ownership of + /// the existing heap allocation. /// /// # Examples /// |
