Skip to content

Commit 1959799

Browse files
committed
test permutations on a type other than usize
1 parent 76c5ce6 commit 1959799

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,10 +1819,10 @@ pub trait Itertools: Iterator {
18191819
/// ```
18201820
/// use itertools::Itertools;
18211821
///
1822-
/// let it = vec![2, 2].into_iter().array_permutations();
1822+
/// let it = vec![-2, -2].into_iter().array_permutations();
18231823
/// itertools::assert_equal(it, vec![
1824-
/// [2, 2], // Note: these are the same
1825-
/// [2, 2], // Note: these are the same
1824+
/// [-2, -2], // Note: these are the same
1825+
/// [-2, -2], // Note: these are the same
18261826
/// ]);
18271827
/// ```
18281828
///
@@ -1868,10 +1868,10 @@ pub trait Itertools: Iterator {
18681868
/// ```
18691869
/// use itertools::Itertools;
18701870
///
1871-
/// let it = vec![2, 2].into_iter().permutations(2);
1871+
/// let it = vec![-2, -2].into_iter().permutations(2);
18721872
/// itertools::assert_equal(it, vec![
1873-
/// vec![2, 2], // Note: these are the same
1874-
/// vec![2, 2], // Note: these are the same
1873+
/// vec![-2, -2], // Note: these are the same
1874+
/// vec![-2, -2], // Note: these are the same
18751875
/// ]);
18761876
/// ```
18771877
///

0 commit comments

Comments
 (0)