Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b0bc59 commit 2bff99cCopy full SHA for 2bff99c
library/alloc/src/string.rs
@@ -156,7 +156,7 @@ use crate::vec::{self, Vec};
156
/// ```
157
///
158
/// Next, what should `s[i]` return? Because indexing returns a reference
159
-/// to underlying data it could be `&u8`, `&[u8]`, or something else similar.
+/// to underlying data it could be `&u8`, `&[u8]`, or something similar.
160
/// Since we're only providing one index, `&u8` makes the most sense but that
161
/// might not be what the user expects and can be explicitly achieved with
162
/// [`as_bytes()`]:
0 commit comments