zipcartesian: minor spelling mistake
This commit is contained in:
@@ -269,7 +269,7 @@ mod test_impls {
|
|||||||
use crate::{
|
use crate::{
|
||||||
card::{Card, PlayingCard, Rank, Suit},
|
card::{Card, PlayingCard, Rank, Suit},
|
||||||
exactsizearr::ExactSizedArr,
|
exactsizearr::ExactSizedArr,
|
||||||
zipcartesian::ZipCatersianExt,
|
zipcartesian::ZipCartesianExt,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ mod tests {
|
|||||||
use crate::{
|
use crate::{
|
||||||
card::{PlayingCard, Rank},
|
card::{PlayingCard, Rank},
|
||||||
modes::tests::test_footstool,
|
modes::tests::test_footstool,
|
||||||
zipcartesian::ZipCatersianExt,
|
zipcartesian::ZipCartesianExt,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ mod tests {
|
|||||||
use std::collections::{HashMap, HashSet};
|
use std::collections::{HashMap, HashSet};
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::{modes::tests::test_footstool, zipcartesian::ZipCatersianExt};
|
use crate::{modes::tests::test_footstool, zipcartesian::ZipCartesianExt};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn new() {
|
fn new() {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
use std::iter::Iterator;
|
use std::iter::Iterator;
|
||||||
|
|
||||||
pub trait ZipCatersianExt: Iterator {
|
pub trait ZipCartesianExt: Iterator {
|
||||||
fn zip_cartesian<B>(
|
fn zip_cartesian<B>(
|
||||||
self,
|
self,
|
||||||
b: B,
|
b: B,
|
||||||
@@ -11,7 +11,7 @@ pub trait ZipCatersianExt: Iterator {
|
|||||||
B: Iterator<Item: Copy> + Clone;
|
B: Iterator<Item: Copy> + Clone;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<I: Iterator<Item: Copy> + Clone> ZipCatersianExt for I {
|
impl<I: Iterator<Item: Copy> + Clone> ZipCartesianExt for I {
|
||||||
/// Exhaustive coupling of two iterators.
|
/// Exhaustive coupling of two iterators.
|
||||||
/// For each x in `self`: for each y in `b`: yield (x, y).
|
/// For each x in `self`: for each y in `b`: yield (x, y).
|
||||||
/// b: B must implement `Clone`.
|
/// b: B must implement `Clone`.
|
||||||
|
|||||||
Reference in New Issue
Block a user