diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-07-08 03:09:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-08 03:09:59 +0200 |
| commit | fd05071727ede428ff9a3bf7844f22d2274b7363 (patch) | |
| tree | 7ac7dddcacb5f5e5e8fae76bd7e5bdd000be90d3 /library/alloc/src/string.rs | |
| parent | 65dded838703fddfb8f3f9b3e4741cb4e34b9f06 (diff) | |
| parent | 2bff99c2756faa8d9e79fc74af9edfe33761277a (diff) | |
| download | rust-fd05071727ede428ff9a3bf7844f22d2274b7363.tar.gz rust-fd05071727ede428ff9a3bf7844f22d2274b7363.zip | |
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 rust-lang/rust#143579.
Diffstat (limited to 'library/alloc/src/string.rs')
| -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 f7a6a646b63..187d1ca71d9 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -156,7 +156,7 @@ use crate::vec::{self, Vec}; /// ``` /// /// Next, what should `s[i]` return? Because indexing returns a reference -/// to underlying data it could be `&u8`, `&[u8]`, or something else similar. +/// to underlying data it could be `&u8`, `&[u8]`, or something similar. /// Since we're only providing one index, `&u8` makes the most sense but that /// might not be what the user expects and can be explicitly achieved with /// [`as_bytes()`]: |
