Skip to content

Commit 0f5cf54

Browse files
committed
Modify Bytes' description
1 parent 9d4b486 commit 0f5cf54

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/libcore/str/mod.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -625,12 +625,13 @@ impl<'a> CharIndices<'a> {
625625
}
626626
}
627627

628-
/// External iterator for a string's bytes.
629-
/// Use with the `std::iter` module.
628+
/// An iterator over the bytes of a string slice.
630629
///
631-
/// Created with the method [`bytes`].
630+
/// This struct is created by the [`bytes()`] method on [`str`].
631+
/// See its documentation for more.
632632
///
633-
/// [`bytes`]: ../../std/primitive.str.html#method.bytes
633+
/// [`bytes()`]: ../../std/primitive.str.html#method.bytes
634+
/// [`str`]: ../../std/primitive.str.html
634635
#[stable(feature = "rust1", since = "1.0.0")]
635636
#[derive(Clone, Debug)]
636637
pub struct Bytes<'a>(Cloned<slice::Iter<'a, u8>>);

0 commit comments

Comments
 (0)