diff --git a/src/pkg/sort/search.go b/src/pkg/sort/search.go index 47deda7c9ba..774764d3d06 100644 --- a/src/pkg/sort/search.go +++ b/src/pkg/sort/search.go @@ -24,7 +24,7 @@ package sort // // If data[0] <= x and x <= data[n-1], Search returns the index i with: // -// data[i] <= x && x <= data[i+1] +// data[i] <= x && x < data[i+1] (0 <= i < n) // // where data[n] is assumed to be larger than any x. Thus, i is the index of x // if it is present in the data. It is the responsibility of the caller to