We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b3ef13 commit 58e2ad3Copy full SHA for 58e2ad3
library/alloc/src/string.rs
@@ -260,8 +260,8 @@ use crate::vec::Vec;
260
/// # Representation
261
///
262
/// A `String` is made up of three components: a pointer to some bytes, a
263
-/// length, and a capacity. The pointer points to an internal buffer `String`
264
-/// 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
265
/// in the buffer, and the capacity is the size of the buffer in bytes. As such,
266
/// the length will always be less than or equal to the capacity.
267
0 commit comments