diff options
| author | Yutaro Ohno <yutaro.ono.418@gmail.com> | 2024-11-17 15:12:53 +0900 |
|---|---|---|
| committer | Yutaro Ohno <yutaro.ono.418@gmail.com> | 2024-11-17 15:23:14 +0900 |
| commit | ec65dfc45ee9824a12ebb4c786469c91b94883ae (patch) | |
| tree | 1e6b50a4bed30550cd28d4d53b098a6022fa1437 | |
| parent | f2a35426b6586178c44b27cedae182502092e898 (diff) | |
| download | rust-ec65dfc45ee9824a12ebb4c786469c91b94883ae.tar.gz rust-ec65dfc45ee9824a12ebb4c786469c91b94883ae.zip | |
alloc: fix `String`'s doc
| -rw-r--r-- | library/alloc/src/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index b042720933b..e0576c25515 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -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; |
