alloc: fix String
's doc
This commit is contained in:
parent
f2a35426b6
commit
ec65dfc45e
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ use crate::vec::Vec;
|
||||||
/// `String`s are always valid UTF-8. If you need a non-UTF-8 string, consider
|
/// `String`s are always valid UTF-8. If you need a non-UTF-8 string, consider
|
||||||
/// [`OsString`]. It is similar, but without the UTF-8 constraint. Because UTF-8
|
/// [`OsString`]. It is similar, but without the UTF-8 constraint. Because UTF-8
|
||||||
/// is a variable width encoding, `String`s are typically smaller than an array of
|
/// is a variable width encoding, `String`s are typically smaller than an array of
|
||||||
/// the same `chars`:
|
/// the same `char`s:
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// use std::mem;
|
/// use std::mem;
|
||||||
|
|
Loading…
Add table
Reference in a new issue