Skip to content

Commit

Permalink
Unrolled build for rust-lang#133126
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#133126 - ohno418:fix-String-doc, r=jhpratt

alloc: fix `String`'s doc

Just a minor fix for `String` struct.
  • Loading branch information
rust-timer authored Nov 17, 2024
2 parents 23e7ecb + ec65dfc commit 4f9f305
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 4f9f305

Please sign in to comment.