mirror of
https://github.com/golang/go
synced 2024-11-21 18:14:42 -07:00
sort.Search: fix typo in documentation
R=r CC=golang-dev https://golang.org/cl/3016043
This commit is contained in:
parent
b611137098
commit
86630fe6ad
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user