Skip to content

Commit 58e2ad3

Browse files
committed
Amended wording
1 parent 7b3ef13 commit 58e2ad3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/alloc/src/string.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ use crate::vec::Vec;
260260
/// # Representation
261261
///
262262
/// 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
263+
/// length, and a capacity. The pointer points to the internal buffer which `String`
264+
/// uses to store its data. The length is the number of bytes currently stored
265265
/// in the buffer, and the capacity is the size of the buffer in bytes. As such,
266266
/// the length will always be less than or equal to the capacity.
267267
///

0 commit comments

Comments
 (0)