Skip to content

Commit 0d1b461

Browse files
committed
doc: mention heap allocation earlier in String docs
Just a tiny addition. Helps with rust-lang#123263.
1 parent e08d065 commit 0d1b461

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: 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)