Skip to content

Commit

Permalink
Rollup merge of #133126 - ohno418:fix-String-doc, r=jhpratt
Browse files Browse the repository at this point in the history
alloc: fix `String`'s doc

Just a minor fix for `String` struct.
  • Loading branch information
jieyouxu authored Nov 17, 2024
2 parents af1c8be + ec65dfc commit defc866
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 defc866

Please sign in to comment.