Skip to content

Commit

Permalink
Rollup merge of #122707 - reedwoodruff:string_docs_typo, r=workingjub…
Browse files Browse the repository at this point in the history
…ilee

Fix a typo in the alloc::string::String docs
  • Loading branch information
workingjubilee authored Mar 25, 2024
2 parents 35936c4 + 58e2ad3 commit c35e971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c35e971

Please sign in to comment.