@@ -481,7 +481,7 @@ impl<T> Vec<T> {
481
481
Self :: with_capacity_in ( capacity, Global )
482
482
}
483
483
484
- /// Creates a `Vec<T>` directly from a pointer, a capacity , and a length .
484
+ /// Creates a `Vec<T>` directly from a pointer, a length , and a capacity .
485
485
///
486
486
/// # Safety
487
487
///
@@ -672,7 +672,7 @@ impl<T, A: Allocator> Vec<T, A> {
672
672
Vec { buf : RawVec :: with_capacity_in ( capacity, alloc) , len : 0 }
673
673
}
674
674
675
- /// Creates a `Vec<T, A>` directly from a pointer, a capacity , a length ,
675
+ /// Creates a `Vec<T, A>` directly from a pointer, a length , a capacity ,
676
676
/// and an allocator.
677
677
///
678
678
/// # Safety
@@ -786,7 +786,7 @@ impl<T, A: Allocator> Vec<T, A> {
786
786
unsafe { Vec { buf : RawVec :: from_raw_parts_in ( ptr, capacity, alloc) , len : length } }
787
787
}
788
788
789
- /// Decomposes a `Vec<T>` into its raw components.
789
+ /// Decomposes a `Vec<T>` into its raw components: `(pointer, length, capacity)` .
790
790
///
791
791
/// Returns the raw pointer to the underlying data, the length of
792
792
/// the vector (in elements), and the allocated capacity of the
@@ -824,7 +824,7 @@ impl<T, A: Allocator> Vec<T, A> {
824
824
( me. as_mut_ptr ( ) , me. len ( ) , me. capacity ( ) )
825
825
}
826
826
827
- /// Decomposes a `Vec<T>` into its raw components.
827
+ /// Decomposes a `Vec<T>` into its raw components: `(pointer, length, capacity, allocator)` .
828
828
///
829
829
/// Returns the raw pointer to the underlying data, the length of the vector (in elements),
830
830
/// the allocated capacity of the data (in elements), and the allocator. These are the same
0 commit comments