mirror of
https://github.com/golang/go
synced 2024-11-26 11:08:38 -07:00
sort: Fixed a typo in the documentation for SearchStrings.
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/6777066
This commit is contained in:
parent
5611e8b59f
commit
3c808164ad
@ -87,7 +87,7 @@ func SearchFloat64s(a []float64, x float64) int {
|
||||
return Search(len(a), func(i int) bool { return a[i] >= x })
|
||||
}
|
||||
|
||||
// SearchStrings searches for x slice a sorted slice of strings and returns the index
|
||||
// SearchStrings searches for x in a sorted slice of strings and returns the index
|
||||
// as specified by Search. The slice must be sorted in ascending order.
|
||||
//
|
||||
func SearchStrings(a []string, x string) int {
|
||||
|
Loading…
Reference in New Issue
Block a user