Skip to content

Commit 050d65b

Browse files
author
Matthijs van Otterdijk
authored
make IntoIter constructor public (#581)
1 parent 9b22722 commit 050d65b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/buf/iter.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ use crate::Buf;
22

33
/// Iterator over the bytes contained by the buffer.
44
///
5-
/// This struct is created by the [`iter`] method on [`Buf`].
6-
///
75
/// # Examples
86
///
97
/// Basic usage:
@@ -43,7 +41,7 @@ impl<T> IntoIter<T> {
4341
/// assert_eq!(iter.next(), Some(b'c'));
4442
/// assert_eq!(iter.next(), None);
4543
/// ```
46-
pub(crate) fn new(inner: T) -> IntoIter<T> {
44+
pub fn new(inner: T) -> IntoIter<T> {
4745
IntoIter { inner }
4846
}
4947

0 commit comments

Comments
 (0)