Skip to content

Commit 80df2c4

Browse files
committed
Use a better description of an internal function
1 parent 8298da7 commit 80df2c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/hir_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ pub fn over<X>(left: &[X], right: &[X], mut eq_fn: impl FnMut(&X, &X) -> bool) -
732732
left.len() == right.len() && left.iter().zip(right).all(|(x, y)| eq_fn(x, y))
733733
}
734734

735-
/// Counts how many elements of the slices are equal as per `eq_fn`.
735+
/// Counts how many elements at the beginning of the slices are equal as per `eq_fn`.
736736
pub fn count_eq<X: Sized>(
737737
left: &mut dyn Iterator<Item = X>,
738738
right: &mut dyn Iterator<Item = X>,

0 commit comments

Comments
 (0)