From ec65dfc45ee9824a12ebb4c786469c91b94883ae Mon Sep 17 00:00:00 2001 From: Yutaro Ohno Date: Sun, 17 Nov 2024 15:12:53 +0900 Subject: [PATCH] alloc: fix `String`'s doc --- library/alloc/src/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index b042720933b6d..e0576c2551545 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;