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.
This commit is contained in:
parent
3ea44938e2
commit
4123d33fbd
@ -1767,7 +1767,7 @@ impl<T, A: Allocator> Vec<T, A> {
|
|||||||
///
|
///
|
||||||
/// # Panics
|
/// # Panics
|
||||||
///
|
///
|
||||||
/// Panics if the number of elements in the vector overflows a `usize`.
|
/// Panics if the new capacity exceeds `isize::MAX` bytes.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user