diff options
| author | Md. Yeasin Arafat <yeasinarafat4389@gmail.com> | 2025-07-08 01:05:16 +0600 |
|---|---|---|
| committer | Md. Yeasin Arafat <yeasinarafat4389@gmail.com> | 2025-07-08 01:05:16 +0600 |
| commit | 2bff99c2756faa8d9e79fc74af9edfe33761277a (patch) | |
| tree | 1c6e2f0b0648d935333c0461ead500b63a82b3e8 | |
| parent | 1b0bc594a75dfc1cdedc6c17052cf44de101e632 (diff) | |
| download | rust-2bff99c2756faa8d9e79fc74af9edfe33761277a.tar.gz rust-2bff99c2756faa8d9e79fc74af9edfe33761277a.zip | |
Fix in String docs: remove 'else' from 'something else similar'
| -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 5f69f699867..d1d830eea6e 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()`]: |
