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
|
/// ```text
|
||||||
/// 0
|
/// 0
|
||||||
/// 5
|
/// 8
|
||||||
/// 10
|
/// 16
|
||||||
/// 20
|
/// 16
|
||||||
/// 20
|
/// 32
|
||||||
/// 40
|
/// 32
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// At first, we have no memory allocated at all, but as we append to the
|
/// At first, we have no memory allocated at all, but as we append to the
|
||||||
|
Loading…
Reference in New Issue
Block a user