mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
alloc: fix String
's doc
This commit is contained in:
parent
f2a35426b6
commit
ec65dfc45e
@ -116,7 +116,7 @@ use crate::vec::Vec;
|
||||
/// `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
|
||||
/// is a variable width encoding, `String`s are typically smaller than an array of
|
||||
/// the same `chars`:
|
||||
/// the same `char`s:
|
||||
///
|
||||
/// ```
|
||||
/// use std::mem;
|
||||
|
Loading…
Reference in New Issue
Block a user