From 6c3ca7e41870e06469838acefa4a63709f1f802f Mon Sep 17 00:00:00 2001 From: mojave2 Date: Thu, 30 Jun 2022 21:10:28 +0800 Subject: [PATCH] correct the output of a `capacity` method example --- library/alloc/src/string.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index 668af60611b..901bdf11e71 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -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