1
0
mirror of https://github.com/golang/go synced 2024-11-23 05:20:11 -07:00

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://golang.org/cl/7279045
This commit is contained in:
Caleb Spare 2013-02-05 07:06:00 -05:00 committed by Russ Cox
parent fd178d6a7e
commit dff017ea99

View 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.
}