Skip to content

Commit

Permalink
Example does not match "IntoIter::new"
Browse files Browse the repository at this point in the history
  • Loading branch information
sighttview committed Aug 31, 2024
1 parent 79fb853 commit 7212c9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/buf/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ impl<T> IntoIter<T> {
/// # Examples
///
/// ```
/// use bytes::Bytes;
/// use bytes::{buf::IntoIter, Bytes};
///
/// let buf = Bytes::from_static(b"abc");
/// let mut iter = buf.into_iter();
/// let mut iter = IntoIter::new(buf);
///
/// assert_eq!(iter.next(), Some(b'a'));
/// assert_eq!(iter.next(), Some(b'b'));
Expand Down

0 comments on commit 7212c9c

Please sign in to comment.