Skip to content

Commit

Permalink
alloc: fix String's doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ohno418 committed Nov 17, 2024
1 parent f2a3542 commit ec65dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ec65dfc

Please sign in to comment.