]> Cypherpunks repositories - gostls13.git/commitdiff
sort: Fixed a typo in the documentation for SearchStrings.
authorPatrick Smith <pat42smith@gmail.com>
Sat, 27 Oct 2012 23:07:59 +0000 (10:07 +1100)
committerDavid Symonds <dsymonds@golang.org>
Sat, 27 Oct 2012 23:07:59 +0000 (10:07 +1100)
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/6777066

src/pkg/sort/search.go

index 4f0ce55c3c5dba2a3829181d9459e4f80ce98689..2dca6bf1331ccd4136a10338653f816ce7e6b875 100644 (file)
@@ -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 {