Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Jul 24, 2022
1 parent 7a82347 commit 136691e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++ {
Expand Down

0 comments on commit 136691e

Please sign in to comment.