Skip to content

Commit dceb2c9

Browse files
committed
as_bytes is not the iterator, bytes is
1 parent 5509ae3 commit dceb2c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcollections/string.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ use boxed::Box;
135135
/// Indexing is intended to be a constant-time operation, but UTF-8 encoding
136136
/// does not allow us to do this. Furthermore, it's not clear what sort of
137137
/// 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
138+
/// The [`bytes()`] and [`chars()`] methods return iterators over the first
139139
/// two, respectively.
140140
///
141-
/// [`as_bytes()`]: #method.as_bytes
141+
/// [`bytes()`]: #method.bytes
142142
/// [`chars()`]: #method.chars
143143
///
144144
/// # Deref

0 commit comments

Comments
 (0)