diff options
| author | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2024-03-25 14:35:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-25 14:35:34 -0700 |
| commit | c35e971ef7a33b0662f079f259378fe701eaecf8 (patch) | |
| tree | ee1bd8f62c51d508cf96d6704abf5054264604b3 /library/alloc/src | |
| parent | 35936c4839dd272646394779d151e060d0f6b3ac (diff) | |
| parent | 58e2ad3d582998453d34c182129f02653f565b5f (diff) | |
| download | rust-c35e971ef7a33b0662f079f259378fe701eaecf8.tar.gz rust-c35e971ef7a33b0662f079f259378fe701eaecf8.zip | |
Rollup merge of #122707 - reedwoodruff:string_docs_typo, r=workingjubilee
Fix a typo in the alloc::string::String docs
Diffstat (limited to 'library/alloc/src')
| -rw-r--r-- | library/alloc/src/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index c4dcff1b1c4..7dba5b4e1f9 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -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. |
