about summary refs log tree commit diff
path: root/library/alloc
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-11-17 23:56:11 +0800
committerGitHub <noreply@github.com>2024-11-17 23:56:11 +0800
commitdefc8666a38c115fa46ab4ddb4e3d2eeca3c206c (patch)
treed5e9bf3d4dc83a3cc62e2c368d6f8e7a8c813c5b /library/alloc
parentaf1c8be4007b5c4e0d16e6b72cb5ee10db53d80c (diff)
parentec65dfc45ee9824a12ebb4c786469c91b94883ae (diff)
downloadrust-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.
Diffstat (limited to 'library/alloc')
-rw-r--r--library/alloc/src/string.rs2
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;