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
@ -317,11 +317,11 @@
|
||||
///
|
||||
/// ```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