mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
correct the output of a capacity
method example
This commit is contained in:
parent
10f4ce324b
commit
6c3ca7e418
@ -317,11 +317,11 @@ use crate::vec::Vec;
|
||||
///
|
||||
/// ```text
|
||||
/// 0
|
||||
/// 5
|
||||
/// 10
|
||||
/// 20
|
||||
/// 20
|
||||
/// 40
|
||||
/// 8
|
||||
/// 16
|
||||
/// 16
|
||||
/// 32
|
||||
/// 32
|
||||
/// ```
|
||||
///
|
||||
/// At first, we have no memory allocated at all, but as we append to the
|
||||
|
Loading…
Reference in New Issue
Block a user