diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-11-17 23:56:11 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-17 23:56:11 +0800 |
| commit | defc8666a38c115fa46ab4ddb4e3d2eeca3c206c (patch) | |
| tree | d5e9bf3d4dc83a3cc62e2c368d6f8e7a8c813c5b | |
| parent | af1c8be4007b5c4e0d16e6b72cb5ee10db53d80c (diff) | |
| parent | ec65dfc45ee9824a12ebb4c786469c91b94883ae (diff) | |
| download | rust-defc8666a38c115fa46ab4ddb4e3d2eeca3c206c.tar.gz rust-defc8666a38c115fa46ab4ddb4e3d2eeca3c206c.zip | |
Rollup merge of #133126 - ohno418:fix-String-doc, r=jhpratt
alloc: fix `String`'s doc Just a minor fix for `String` struct.
| -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; |
