Skip to content

Commit 37ff28f

Browse files
authored
Merge pull request #331 from scottmcm/master
Use assert_ne now that the minver is higher
2 parents 2a092df + 9fb91bc commit 37ff28f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,10 +1690,9 @@ pub trait Itertools : Iterator {
16901690
/// assert_eq!((0..10).tree_fold1(|x, y| x + y),
16911691
/// (0..10).fold1(|x, y| x + y));
16921692
/// // ...but not for non-associative ones
1693-
/// assert!((0..10).tree_fold1(|x, y| x - y)
1694-
/// != (0..10).fold1(|x, y| x - y));
1693+
/// assert_ne!((0..10).tree_fold1(|x, y| x - y),
1694+
/// (0..10).fold1(|x, y| x - y));
16951695
/// ```
1696-
// FIXME: If minver changes to >= 1.13, use `assert_ne!` in the doctest.
16971696
fn tree_fold1<F>(mut self, mut f: F) -> Option<Self::Item>
16981697
where F: FnMut(Self::Item, Self::Item) -> Self::Item,
16991698
Self: Sized,

0 commit comments

Comments
 (0)