]> Cypherpunks repositories - gostls13.git/commitdiff
sort.Search: fix typo in documentation
authorRobert Griesemer <gri@golang.org>
Thu, 11 Nov 2010 18:51:59 +0000 (10:51 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 11 Nov 2010 18:51:59 +0000 (10:51 -0800)
R=r
CC=golang-dev
https://golang.org/cl/3016043

src/pkg/sort/search.go

index 47deda7c9bab30b49bf55cd29af1e5e13e5cc7c2..774764d3d0688d916f728784d15f66d08d973ad5 100644 (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