mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
as_bytes is not the iterator, bytes is
This commit is contained in:
@@ -135,10 +135,10 @@
|
||||
/// 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
|
||||
|
||||
Reference in New Issue
Block a user