We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d4b486 commit 0f5cf54Copy full SHA for 0f5cf54
src/libcore/str/mod.rs
@@ -625,12 +625,13 @@ impl<'a> CharIndices<'a> {
625
}
626
627
628
-/// External iterator for a string's bytes.
629
-/// Use with the `std::iter` module.
+/// An iterator over the bytes of a string slice.
630
///
631
-/// Created with the method [`bytes`].
+/// This struct is created by the [`bytes()`] method on [`str`].
+/// See its documentation for more.
632
633
-/// [`bytes`]: ../../std/primitive.str.html#method.bytes
+/// [`bytes()`]: ../../std/primitive.str.html#method.bytes
634
+/// [`str`]: ../../std/primitive.str.html
635
#[stable(feature = "rust1", since = "1.0.0")]
636
#[derive(Clone, Debug)]
637
pub struct Bytes<'a>(Cloned<slice::Iter<'a, u8>>);
0 commit comments