queue: fixing doc after cherry pick

This commit just fixes a godoc and adds a new one to the already
merged queue.PriorityQueue.
This commit is contained in:
Andras Banki-Horvath committed 2019-12-13 16:52:22 +01:00
1 parent 88e01fa1fa
commit ff3063daea
1 file changed
+3 -1
+3 -1
View File
@@ -9,6 +9,8 @@ import (
// PriorityQueue will be able to use that to build and restore an underlying
// heap.
type PriorityQueueItem interface {
// Less must return true if this item is ordered before other and false
// otherwise.
Less(other PriorityQueueItem) bool
}
@@ -43,7 +45,7 @@ func (pq *priorityQueue) Pop() interface{} {
return item
}
// Priority wrap a standard heap in a more object-oriented structure.
// PriorityQueue wraps a standard heap into a self contained class.
type PriorityQueue struct {
queue priorityQueue
}