Skip to content

Commit 66de611

Browse files
committed
Auto merge of #123270 - JaniM:janim/string-alloc-doc, r=workingjubilee
doc: mention heap allocation earlier in String docs Just a tiny addition. Helps with #123263.
2 parents 8058136 + 418535b commit 66de611

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/alloc/src/string.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ use crate::vec::Vec;
7272

7373
/// A UTF-8–encoded, growable string.
7474
///
75-
/// The `String` type is the most common string type that has ownership over the
76-
/// contents of the string. It has a close relationship with its borrowed
77-
/// counterpart, the primitive [`str`].
75+
/// `String` is the most common string type. It has ownership over the contents
76+
/// of the string, stored in a heap-allocated buffer (see [Representation](#representation)).
77+
/// It is closely related to its borrowed counterpart, the primitive [`str`].
7878
///
7979
/// # Examples
8080
///

0 commit comments

Comments
 (0)