Rollup merge of #95214 - tbu-:pr_vec_append_doc, r=Mark-Simulacrum

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:
Matthias Krüger 2022-05-28 01:11:46 +02:00 committed by GitHub
commit 4254f922db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1771,7 +1771,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
/// ///