diff options
| -rw-r--r-- | clippy_utils/src/hir_utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/hir_utils.rs b/clippy_utils/src/hir_utils.rs index c73ab4bfa68..205c921f7cf 100644 --- a/clippy_utils/src/hir_utils.rs +++ b/clippy_utils/src/hir_utils.rs @@ -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>, |
