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 May 4, 2020
1 parent 80c9487 commit d55f0fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Expand Up @@ -402,6 +402,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 d55f0fb

Please sign in to comment.