Skip to content

Commit 42e003c

Browse files
authored
Unrolled build for rust-lang#122707
Rollup merge of rust-lang#122707 - reedwoodruff:string_docs_typo, r=workingjubilee Fix a typo in the alloc::string::String docs
2 parents c98ea0d + 58e2ad3 commit 42e003c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ use crate::vec::Vec;
260260
/// # Representation
261261
///
262262
/// A `String` is made up of three components: a pointer to some bytes, a
263-
/// length, and a capacity. The pointer points to an internal buffer `String`
263+
/// length, and a capacity. The pointer points to the internal buffer which `String`
264264
/// uses to store its data. The length is the number of bytes currently stored
265265
/// in the buffer, and the capacity is the size of the buffer in bytes. As such,
266266
/// the length will always be less than or equal to the capacity.

0 commit comments

Comments
 (0)