Commit dff017ea authored by Caleb Spare's avatar Caleb Spare Committed by Russ Cox

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
parent fd178d6a
......@@ -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.
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment