Skip to content

Commit 16e6d20

Browse files
committed
alloc: fix String's doc
1 parent 4010980 commit 16e6d20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alloc/src/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ use crate::vec::Vec;
116116
/// `String`s are always valid UTF-8. If you need a non-UTF-8 string, consider
117117
/// [`OsString`]. It is similar, but without the UTF-8 constraint. Because UTF-8
118118
/// is a variable width encoding, `String`s are typically smaller than an array of
119-
/// the same `chars`:
119+
/// the same `char`s:
120120
///
121121
/// ```
122122
/// use std::mem;

0 commit comments

Comments
 (0)