Skip to content

Commit aae3c52

Browse files
committed
Remove the note on the internal capacity field in RawVec
1 parent ba26a9e commit aae3c52

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/liballoc/raw_vec.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ mod tests;
4141
///
4242
/// Note that the excess of a zero-sized types is always infinite, so `capacity()` always returns
4343
/// `usize::MAX`. This means that you need to be careful when round-tripping this type with a
44-
/// `Box<[T]>`, since `capacity()` won't yield the length. However, `with_capacity`,
45-
/// `shrink_to_fit`, and `from_box` will actually set `RawVec`'s private capacity field. This allows
46-
/// zero-sized types to not be special-cased by consumers of this type.
44+
/// `Box<[T]>`, since `capacity()` won't yield the length.
4745
#[allow(missing_debug_implementations)]
4846
pub struct RawVec<T, A: AllocRef = Global> {
4947
ptr: Unique<T>,

0 commit comments

Comments
 (0)