Skip to content

Commit 40f79ba

Browse files
authored
Auto merge of #37327 - aidanhs:aphs-bytes-iter-doc, r=alexcrichton
`as_bytes` is not the iterator on String, `bytes` is r? @steveklabnik
2 parents febfe76 + dceb2c9 commit 40f79ba

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)