Skip to content

Commit ef1bd57

Browse files
authored
Change wording
1 parent b3321e2 commit ef1bd57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/alloc/src/vec/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2795,8 +2795,8 @@ where
27952795
#[cfg(not(test))]
27962796
#[stable(feature = "vec_from_box", since = "1.18.0")]
27972797
impl<T, A: Allocator> From<Box<[T], A>> for Vec<T, A> {
2798-
/// Convert a boxed slice into a vector.
2799-
/// No heap allocation is performed, and the items are not copied.
2798+
/// Convert a boxed slice into a vector by transferring ownership of
2799+
/// the existing heap allocation.
28002800
///
28012801
/// # Examples
28022802
///

0 commit comments

Comments
 (0)