We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents febfe76 + dceb2c9 commit 40f79baCopy full SHA for 40f79ba
src/libcollections/string.rs
@@ -135,10 +135,10 @@ use boxed::Box;
135
/// Indexing is intended to be a constant-time operation, but UTF-8 encoding
136
/// does not allow us to do this. Furthermore, it's not clear what sort of
137
/// thing the index should return: a byte, a codepoint, or a grapheme cluster.
138
-/// The [`as_bytes()`] and [`chars()`] methods return iterators over the first
+/// The [`bytes()`] and [`chars()`] methods return iterators over the first
139
/// two, respectively.
140
///
141
-/// [`as_bytes()`]: #method.as_bytes
+/// [`bytes()`]: #method.bytes
142
/// [`chars()`]: #method.chars
143
144
/// # Deref
0 commit comments