1
0
mirror of https://github.com/golang/go synced 2024-11-22 02:54:39 -07:00

container/heap: better package documentation

Fixes #1820.

R=golang-dev, bradfitz, gri
CC=golang-dev
https://golang.org/cl/5540073
This commit is contained in:
Rob Pike 2012-01-17 13:07:47 -08:00
parent a00de45bbb
commit 4c40558c74

View File

@ -3,7 +3,13 @@
// license that can be found in the LICENSE file.
// Package heap provides heap operations for any type that implements
// heap.Interface.
// heap.Interface. A heap is a tree with the property that each node is the
// highest-valued node in its subtree.
//
// A heap is a common way to impement a priority queue. To build a priority
// queue, implement the Heap interface with the (negative) priority as the
// ordering for the Less method, so Push adds items while Pop removes the
// highest-priority item from the queue.
//
package heap