Browse Source

queue: fixing doc after cherry pick

This commit just fixes a godoc and adds a new one to the already
merged queue.PriorityQueue.
master
Andras Banki-Horvath 5 years ago
parent
commit
ff3063daea
  1. 4
      queue/priority_queue.go

4
queue/priority_queue.go

@ -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
}

Loading…
Cancel
Save