diff options
Diffstat (limited to 'src/slices/sort.go')
-rw-r--r-- | src/slices/sort.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slices/sort.go b/src/slices/sort.go index af1d51ecd4..a634c12f6f 100644 --- a/src/slices/sort.go +++ b/src/slices/sort.go @@ -138,7 +138,7 @@ func BinarySearch[S ~[]E, E cmp.Ordered](x S, target E) (int, bool) { return i, i < n && (x[i] == target || (isNaN(x[i]) && isNaN(target))) } -// BinarySearchFunc works like BinarySearch, but uses a custom comparison +// BinarySearchFunc works like [BinarySearch], but uses a custom comparison // function. The slice must be sorted in increasing order, where "increasing" // is defined by cmp. cmp should return 0 if the slice element matches // the target, a negative number if the slice element precedes the target, |