We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3321e2 commit ef1bd57Copy full SHA for ef1bd57
library/alloc/src/vec/mod.rs
@@ -2795,8 +2795,8 @@ where
2795
#[cfg(not(test))]
2796
#[stable(feature = "vec_from_box", since = "1.18.0")]
2797
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.
+ /// Convert a boxed slice into a vector by transferring ownership of
+ /// the existing heap allocation.
2800
///
2801
/// # Examples
2802
0 commit comments