Skip to content

Commit c4c01f0

Browse files
authored
Update mod.rs
1 parent 8424f8e commit c4c01f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

library/alloc/src/vec/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,8 +1074,9 @@ impl<T, A: Allocator> Vec<T, A> {
10741074

10751075
/// Converts the vector into [`Box<[T]>`][owned slice].
10761076
///
1077-
/// If the vector has excess capacity, its items will be moved into a
1078-
/// newly-allocated buffer with exactly the right capacity.
1077+
/// If the vector has excess capacity, it will shrink down as close as
1078+
/// possible to the length but the allocator may still inform the vector
1079+
/// that there is space for a few more elements.
10791080
///
10801081
/// [owned slice]: Box
10811082
///

0 commit comments

Comments
 (0)