mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-22 04:27:33 +00:00
Modify Bytes' description
This commit is contained in:
parent
9d4b486b84
commit
0f5cf54246
@ -625,12 +625,13 @@ impl<'a> CharIndices<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// External iterator for a string's bytes.
|
/// An iterator over the bytes of a string slice.
|
||||||
/// Use with the `std::iter` module.
|
|
||||||
///
|
///
|
||||||
/// 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")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct Bytes<'a>(Cloned<slice::Iter<'a, u8>>);
|
pub struct Bytes<'a>(Cloned<slice::Iter<'a, u8>>);
|
||||||
|
Loading…
Reference in New Issue
Block a user