diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index 414486ed75f..2a859ad55ee 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -1382,7 +1382,7 @@ pub fn as_bytes(&self) -> &[u8] { /// Shortens this `String` to the specified length. /// - /// If `new_len` is greater than or equal to the string's current length, this has no + /// If `new_len` is greater than or equal to the string's current length, this has no /// effect. /// /// Note that this method has no effect on the allocated capacity