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:
parent
e6b883c74f
commit
42f91047c8
1 changed files with 1 additions and 1 deletions
|
@ -822,7 +822,7 @@ impl<T, A: Allocator> Vec<T, A> {
|
||||||
///
|
///
|
||||||
/// # Panics
|
/// # Panics
|
||||||
///
|
///
|
||||||
/// Panics if the new capacity overflows `usize`.
|
/// Panics if the new capacity exceeds `isize::MAX` bytes.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Reference in a new issue