1
0
mirror of https://github.com/golang/go synced 2024-11-25 03:07:56 -07:00

sort.Search: fix typo in documentation

R=r
CC=golang-dev
https://golang.org/cl/3016043
This commit is contained in:
Robert Griesemer 2010-11-11 10:51:59 -08:00
parent b611137098
commit 86630fe6ad

View File

@ -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