From: Robert Griesemer Date: Thu, 11 Nov 2010 18:51:59 +0000 (-0800) Subject: sort.Search: fix typo in documentation X-Git-Tag: weekly.2010-11-23~36 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=86630fe6adb597b535e4a19265e38715a35fc5c8;p=gostls13.git sort.Search: fix typo in documentation R=r CC=golang-dev https://golang.org/cl/3016043 --- 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