Skip to content

Commit

Permalink
Amended wording
Browse files Browse the repository at this point in the history
  • Loading branch information
reedwoodruff committed Mar 24, 2024
1 parent 7b3ef13 commit 58e2ad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/alloc/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ use crate::vec::Vec;
/// # 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.
///
Expand Down

0 comments on commit 58e2ad3

Please sign in to comment.