Skip to content

Commit a9764e9

Browse files
committed
Remove impossible panic note from Vec::append
Neither the number of elements in a vector can overflow a `usize`, nor can the amount of elements in two vectors.
1 parent b241a27 commit a9764e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alloc/src/vec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@ impl<T, A: Allocator> Vec<T, A> {
17671767
///
17681768
/// # Panics
17691769
///
1770-
/// Panics if the number of elements in the vector overflows a `usize`.
1770+
/// Panics if the new capacity exceeds `isize::MAX` bytes.
17711771
///
17721772
/// # Examples
17731773
///

0 commit comments

Comments
 (0)