From 86630fe6adb597b535e4a19265e38715a35fc5c8 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 11 Nov 2010 10:51:59 -0800 Subject: [PATCH] sort.Search: fix typo in documentation R=r CC=golang-dev https://golang.org/cl/3016043 --- src/pkg/sort/search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0