aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/container
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2014-02-10 12:48:56 -0800
committerRobert Griesemer <gri@golang.org>2014-02-10 12:48:56 -0800
commit4d1301949a546b373e9bd75bbefac3fc228b9de5 (patch)
tree945e5558fbea060f3f47f063a3ad1c35423dda70 /src/pkg/container
parent76dcb9b346ad4acba0a88e254fefccf75a13a36d (diff)
downloadgo-4d1301949a546b373e9bd75bbefac3fc228b9de5.tar.xz
container/heap: avoid and/or ambiguity in documentation
(per suggestion by Doug McIlroy) LGTM=r R=r CC=golang-codereviews https://golang.org/cl/50580046
Diffstat (limited to 'src/pkg/container')
-rw-r--r--src/pkg/container/heap/heap.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/container/heap/heap.go b/src/pkg/container/heap/heap.go
index 52c8507b42..3fe2327ad2 100644
--- a/src/pkg/container/heap/heap.go
+++ b/src/pkg/container/heap/heap.go
@@ -22,7 +22,7 @@ import "sort"
// min-heap with the following invariants (established after
// Init has been called or if the data is empty or sorted):
//
-// !h.Less(j, i) for 0 <= i < h.Len() and j = 2*i+1 or 2*i+2 and j < h.Len()
+// !h.Less(j, i) for 0 <= i < h.Len() and 2*i+1 <= j <= 2*i+2 and j < h.Len()
//
// Note that Push and Pop in this interface are for package heap's
// implementation to call. To add and remove things from the heap,