correct the output of a capacity method example

This commit is contained in:
mojave2 2022-06-30 21:10:28 +08:00
parent 10f4ce324b
commit 6c3ca7e418

View File

@ -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