Rollup merge of #122707 - reedwoodruff:string_docs_typo, r=workingjubilee

Fix a typo in the alloc::string::String docs
This commit is contained in:
Jubilee 2024-03-25 14:35:34 -07:00 committed by GitHub
commit c35e971ef7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -260,7 +260,7 @@ 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`
/// 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.