about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDonnie Bishop <donnie.a.bishop@gmail.com>2017-03-30 15:40:05 -0400
committerDonnie Bishop <donnie.a.bishop@gmail.com>2017-03-30 15:40:05 -0400
commit0f5cf54246f7a68a8fc18ee41dffc7cdf866e19c (patch)
tree57264a3e819aa8cc6f8d46c8f1ac263b75633371
parent9d4b486b845c7d04691801f1151219b41b7c327b (diff)
downloadrust-0f5cf54246f7a68a8fc18ee41dffc7cdf866e19c.tar.gz
rust-0f5cf54246f7a68a8fc18ee41dffc7cdf866e19c.zip
Modify Bytes' description
-rw-r--r--src/libcore/str/mod.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index e995b59a145..4556d41dd0a 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -625,12 +625,13 @@ impl<'a> CharIndices<'a> {
     }
 }
 
-/// External iterator for a string's bytes.
-/// Use with the `std::iter` module.
+/// An iterator over the bytes of a string slice.
 ///
-/// Created with the method [`bytes`].
+/// This struct is created by the [`bytes()`] method on [`str`].
+/// See its documentation for more.
 ///
-/// [`bytes`]: ../../std/primitive.str.html#method.bytes
+/// [`bytes()`]: ../../std/primitive.str.html#method.bytes
+/// [`str`]: ../../std/primitive.str.html
 #[stable(feature = "rust1", since = "1.0.0")]
 #[derive(Clone, Debug)]
 pub struct Bytes<'a>(Cloned<slice::Iter<'a, u8>>);