Skip to content

Commit

Permalink
as_bytes is not the iterator, bytes is
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanhs committed Oct 21, 2016
1 parent 5509ae3 commit dceb2c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcollections/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dceb2c9

Please sign in to comment.