]> Cypherpunks repositories - gostls13.git/commitdiff
container/heap: fix comment typo in example test
authorCaleb Spare <cespare@gmail.com>
Tue, 5 Feb 2013 12:06:00 +0000 (07:06 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 5 Feb 2013 12:06:00 +0000 (07:06 -0500)
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://golang.org/cl/7279045

src/pkg/container/heap/example_pq_test.go

index 0f91de138e58bdf03d0b55d2f3de07f95ecaf5bb..8cbeb8d708aafdbe0958fd86ddb28098c9e84f59 100644 (file)
@@ -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.
 }