From 58e2ad3d582998453d34c182129f02653f565b5f Mon Sep 17 00:00:00 2001 From: Reed Date: Sun, 24 Mar 2024 12:20:39 -0700 Subject: [PATCH] Amended wording --- library/alloc/src/string.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index f5c1245a762..7dba5b4e1f9 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -260,8 +260,8 @@ /// # Representation /// /// A `String` is made up of three components: a pointer to some bytes, a -/// length, and a capacity. The pointer points to an internal buffer `String` -/// used to store its data. The length is the number of bytes currently stored +/// length, and a capacity. The pointer points to the internal buffer which `String` +/// uses to store its data. The length is the number of bytes currently stored /// in the buffer, and the capacity is the size of the buffer in bytes. As such, /// the length will always be less than or equal to the capacity. ///