summaryrefslogtreecommitdiff
path: root/src/pkg/container
diff options
context:
space:
mode:
authorCaleb Spare <cespare@gmail.com>2013-02-05 07:06:00 -0500
committerCaleb Spare <cespare@gmail.com>2013-02-05 07:06:00 -0500
commit303aeb28b6bb0b5162842e832a9ecd14cf088abb (patch)
tree7aae01999e881132bc3a0f8408bb97ae0c6b7949 /src/pkg/container
parent8b010f3dc165ef39ab7b8f776f01838ed756ff3c (diff)
downloadgo-303aeb28b6bb0b5162842e832a9ecd14cf088abb.tar.gz
container/heap: fix comment typo in example test
This updates a bad reference to a method name in the example priority queue test. The error was introduced in the example refactoring in rev. 2ea8f07b2ffe. R=golang-dev, minux.ma CC=golang-dev https://codereview.appspot.com/7279045 Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/pkg/container')
-rw-r--r--src/pkg/container/heap/example_pq_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/container/heap/example_pq_test.go b/src/pkg/container/heap/example_pq_test.go
index 0f91de138..8cbeb8d70 100644
--- a/src/pkg/container/heap/example_pq_test.go
+++ b/src/pkg/container/heap/example_pq_test.go
@@ -14,7 +14,7 @@ import (
type Item struct {
value string // The value of the item; arbitrary.
priority int // The priority of the item in the queue.
- // The index is needed by changePriority and is maintained by the heap.Interface methods.
+ // The index is needed by update and is maintained by the heap.Interface methods.
index int // The index of the item in the heap.
}