Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4254f92

Browse files
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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /