1
Fork 0

Rollup merge of #91686 - dalcde:patch-1, r=dtolnay

Fix `Vec::reserve_exact` documentation

The documentation previously said the new capacity cannot overflow `usize`, but in fact it cannot exceed `isize::MAX`.
This commit is contained in:
Matthias Krüger 2021-12-10 22:41:25 +01:00 committed by GitHub
commit 1d36c6ac2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -822,7 +822,7 @@ impl<T, A: Allocator> Vec<T, A> {
///
/// # Panics
///
/// Panics if the new capacity overflows `usize`.
/// Panics if the new capacity exceeds `isize::MAX` bytes.
///
/// # Examples
///