aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2010-11-11 10:51:59 -0800
committerRobert Griesemer <gri@golang.org>2010-11-11 10:51:59 -0800
commit86630fe6adb597b535e4a19265e38715a35fc5c8 (patch)
treee83d2749bfc1338848d68b1c2ac5839004243af4
parentb6111370989afd7d35176c609b957e4a61f15cf5 (diff)
downloadgo-86630fe6adb597b535e4a19265e38715a35fc5c8.tar.gz
go-86630fe6adb597b535e4a19265e38715a35fc5c8.zip
sort.Search: fix typo in documentation
R=r CC=golang-dev https://golang.org/cl/3016043
-rw-r--r--src/pkg/sort/search.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/sort/search.go b/src/pkg/sort/search.go
index 47deda7c9b..774764d3d0 100644
--- a/src/pkg/sort/search.go
+++ b/src/pkg/sort/search.go
@@ -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