about summary refs log tree commit diff
path: root/src/libcollections/string.rs
diff options
context:
space:
mode:
authorAidan Hobson Sayers <aidanhs@cantab.net>2016-10-21 18:28:02 +0100
committerAidan Hobson Sayers <aidanhs@cantab.net>2016-10-21 18:28:02 +0100
commitdceb2c9cd29792ef05487e37926e19d0ac8e2639 (patch)
treeb20bcdeb013761a0405f7828e329eff5d1886523 /src/libcollections/string.rs
parent5509ae399e4ed6f041b95bf948751f35b7d65517 (diff)
downloadrust-dceb2c9cd29792ef05487e37926e19d0ac8e2639.tar.gz
rust-dceb2c9cd29792ef05487e37926e19d0ac8e2639.zip
`as_bytes` is not the iterator, `bytes` is
Diffstat (limited to 'src/libcollections/string.rs')
-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 7a61451b900..e10c2d1241f 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