mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Use a better description of an internal function
This commit is contained in:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user