Skip to content

Commit f94e2ec

Browse files
nilsgstraboCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 2a0ef1c commit f94e2ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

utils/slice/utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ func FindFirst[T any](source []T, predicate func(T) bool) (element T, ok bool) {
8080
}
8181

8282
// ElementsMatch reports whether two slices are equal: the same length and all
83-
// elements exists in both lists, ignoring the order of the elements.
84-
// If there are duplicate elements, the number of appearances of each of them in both lists should match.
83+
// elements exist in both slices, ignoring the order of the elements.
84+
// If there are duplicate elements, the number of appearances of each of them in both slices should match.
8585
func ElementsMatch[S ~[]E, E comparable](a, b S) bool {
8686
if len(a) != len(b) {
8787
return false

0 commit comments

Comments
 (0)