Skip to content

Commit 4254f92

Browse files
authored
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.
2 parents ebbcbfc + 4123d33 commit 4254f92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1771,7 +1771,7 @@ impl<T, A: Allocator> Vec<T, A> {
17711771
///
17721772
/// # Panics
17731773
///
1774-
/// Panics if the number of elements in the vector overflows a `usize`.
1774+
/// Panics if the new capacity exceeds `isize::MAX` bytes.
17751775
///
17761776
/// # Examples
17771777
///

0 commit comments

Comments
 (0)