mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Amended wording
This commit is contained in:
parent
7b3ef13146
commit
58e2ad3d58
@ -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.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user