Skip to content

Commit 8e73e5d

Browse files
committed
Canonicalize some free functions (5) multipeek: documentation
1 parent 08ea4c4 commit 8e73e5d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/multipeek_impl.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ use std::iter::Fuse;
22
use alloc::collections::VecDeque;
33
use crate::size_hint;
44
use crate::PeekingNext;
5+
#[cfg(doc)]
6+
use crate::Itertools;
57

68
/// See [`multipeek()`] for more information.
79
#[derive(Clone, Debug)]
@@ -15,6 +17,8 @@ pub struct MultiPeek<I>
1517

1618
/// An iterator adaptor that allows the user to peek at multiple `.next()`
1719
/// values without advancing the base iterator.
20+
///
21+
/// [`IntoIterator`] enabled version of [`Itertools::multipeek`].
1822
pub fn multipeek<I>(iterable: I) -> MultiPeek<I::IntoIter>
1923
where I: IntoIterator
2024
{

0 commit comments

Comments
 (0)