Skip to content

Commit 7985ca4

Browse files
committed
Refine Itertools::intersperse_with doctest
1 parent 8fe0b56 commit 7985ca4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ pub trait Itertools : Iterator {
412412
///
413413
/// let mut i = 10;
414414
/// itertools::assert_equal((0..3).intersperse_with(|| { i -= 1; i }), vec![0, 9, 1, 8, 2]);
415+
/// assert_eq!(i, 8);
415416
/// ```
416417
fn intersperse_with<F>(self, element: F) -> IntersperseWith<Self, F>
417418
where Self: Sized,

0 commit comments

Comments
 (0)