mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue