mirror of
https://github.com/golang/go
synced 2024-10-04 14:21:21 -06:00
b2d1a2b513
- use Init to establish heap invariant on a non-empty heap - use Fix to update heap after an element's properties have been changed (The old code used Init where it wasn't needed, and didn't use Fix because Fix was added after the example was written.) LGTM=bradfitz R=adonovan, bradfitz CC=golang-codereviews https://golang.org/cl/94520043 |
||
---|---|---|
.. | ||
heap | ||
list | ||
ring |