diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index 7a61451b900c0322c946430e63fd7bed934b4314..e10c2d1241fed466c774ba3c87705b9b4a6aa0f8 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -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