Skip to content

Commit

Permalink
Refine Itertools::intersperse_with doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
gin-ahirsch committed Nov 7, 2019
1 parent 8fe0b56 commit 7985ca4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Expand Up @@ -412,6 +412,7 @@ pub trait Itertools : Iterator {
///
/// let mut i = 10;
/// itertools::assert_equal((0..3).intersperse_with(|| { i -= 1; i }), vec![0, 9, 1, 8, 2]);
/// assert_eq!(i, 8);
/// ```
fn intersperse_with<F>(self, element: F) -> IntersperseWith<Self, F>
where Self: Sized,
Expand Down

0 comments on commit 7985ca4

Please sign in to comment.