Auto merge of #37327 - aidanhs:aphs-bytes-iter-doc, r=alexcrichton

`as_bytes` is not the iterator on String, `bytes` is

r? @steveklabnik
This commit is contained in:
bors 2016-10-22 23:02:24 -07:00 committed by GitHub
commit 40f79ba8c9
1 changed files with 2 additions and 2 deletions

View File

@ -135,10 +135,10 @@ use boxed::Box;
/// Indexing is intended to be a constant-time operation, but UTF-8 encoding
/// does not allow us to do this. Furthermore, it's not clear what sort of
/// thing the index should return: a byte, a codepoint, or a grapheme cluster.
/// The [`as_bytes()`] and [`chars()`] methods return iterators over the first
/// The [`bytes()`] and [`chars()`] methods return iterators over the first
/// two, respectively.
///
/// [`as_bytes()`]: #method.as_bytes
/// [`bytes()`]: #method.bytes
/// [`chars()`]: #method.chars
///
/// # Deref