From 2bff99c2756faa8d9e79fc74af9edfe33761277a Mon Sep 17 00:00:00 2001 From: "Md. Yeasin Arafat" Date: Tue, 8 Jul 2025 01:05:16 +0600 Subject: [PATCH] Fix in String docs: remove 'else' from 'something else similar' --- 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 5f69f699867a9..d1d830eea6ec1 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()`]: