Skip to content

Commit fd05071

Browse files
authored
Rollup merge of #143608 - codexarafat:fix-string-doc, r=Noratrieb
Fix in std::String docs This PR removes the word “else” from the sentence ('something else similar') in the String documentation to improve clarity. Fixes #143579.
2 parents 65dded8 + 2bff99c commit fd05071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ use crate::vec::{self, Vec};
156156
/// ```
157157
///
158158
/// Next, what should `s[i]` return? Because indexing returns a reference
159-
/// to underlying data it could be `&u8`, `&[u8]`, or something else similar.
159+
/// to underlying data it could be `&u8`, `&[u8]`, or something similar.
160160
/// Since we're only providing one index, `&u8` makes the most sense but that
161161
/// might not be what the user expects and can be explicitly achieved with
162162
/// [`as_bytes()`]:

0 commit comments

Comments
 (0)