Skip to content

Commit 2bff99c

Browse files
committed
Fix in String docs: remove 'else' from 'something else similar'
1 parent 1b0bc59 commit 2bff99c

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)