From 136691e8f3a787c53a8b1785661e19c211d86ee6 Mon Sep 17 00:00:00 2001 From: Samuel Berthe Date: Sun, 24 Jul 2022 23:20:29 +0200 Subject: [PATCH] oops --- slice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slice.go b/slice.go index da62c3c3..de9e6cbf 100644 --- a/slice.go +++ b/slice.go @@ -475,7 +475,7 @@ func IsSorted[T constraints.Ordered](collection []T) bool { } // IsSortedByKey checks if a slice is sorted by iteratee. -func IsSortedByKey[T any, K constraints.Ordered](collection []T, iteratee func(V) K) bool { +func IsSortedByKey[T any, K constraints.Ordered](collection []T, iteratee func(T) K) bool { size := len(collection) for i := 0; i < size-1; i++ {