about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-10-22 23:02:24 -0700
committerGitHub <noreply@github.com>2016-10-22 23:02:24 -0700
commit40f79ba8c99ca7d9935182eadb89443df86f72bf (patch)
tree33238ed00b21546f949ab9d4ae5710f791a1713f
parentfebfe7683b98ee68a3eca8f069fd09993b3109a3 (diff)
parentdceb2c9cd29792ef05487e37926e19d0ac8e2639 (diff)
downloadrust-40f79ba8c99ca7d9935182eadb89443df86f72bf.tar.gz
rust-40f79ba8c99ca7d9935182eadb89443df86f72bf.zip
Auto merge of #37327 - aidanhs:aphs-bytes-iter-doc, r=alexcrichton
`as_bytes` is not the iterator on String, `bytes` is

r? @steveklabnik
-rw-r--r--src/libcollections/string.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs
index ce9fec32917..286f06b6fe3 100644
--- a/src/libcollections/string.rs
+++ b/src/libcollections/string.rs
@@ -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