Use a better description of an internal function

This commit is contained in:
Samuel Tardieu 2024-11-23 19:38:44 +01:00
parent 8298da72e7
commit 80df2c4ced

View file

@ -732,7 +732,7 @@ pub fn over<X>(left: &[X], right: &[X], mut eq_fn: impl FnMut(&X, &X) -> bool) -
left.len() == right.len() && left.iter().zip(right).all(|(x, y)| eq_fn(x, y))
}
/// Counts how many elements of the slices are equal as per `eq_fn`.
/// Counts how many elements at the beginning of the slices are equal as per `eq_fn`.
pub fn count_eq<X: Sized>(
left: &mut dyn Iterator<Item = X>,
right: &mut dyn Iterator<Item = X>,