Rollup merge of #98710 - mojave2:string, r=JohnTitor
correct the output of a `capacity` method example The output of this example in std::alloc is different from which shown in the comment. I have tested it on both Linux and Windows.
This commit is contained in:
commit
b8aab9781a
1 changed files with 5 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue