Skip to content

Commit

Permalink
Remove impossible panic note from Vec::append
Browse files Browse the repository at this point in the history
Neither the number of elements in a vector can overflow a `usize`, nor
can the amount of elements in two vectors.
  • Loading branch information
tbu- committed Mar 22, 2022
1 parent 3ea4493 commit 4123d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/vec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ impl<T, A: Allocator> Vec<T, A> {
///
/// # Panics
///
/// Panics if the number of elements in the vector overflows a `usize`.
/// Panics if the new capacity exceeds `isize::MAX` bytes.
///
/// # Examples
///
Expand Down

0 comments on commit 4123d33

Please sign in to comment.