1
0
mirror of https://github.com/golang/go synced 2024-10-04 14:21:21 -06:00
go/src/pkg/container
Robert Griesemer b2d1a2b513 container/heap: update example code
- 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
2014-05-15 13:58:13 -07:00
..
heap container/heap: update example code 2014-05-15 13:58:13 -07:00
list all: fix typos 2014-04-16 16:57:25 -07:00
ring container/ring: add test for Move with empty Ring 2013-12-31 21:18:40 +11:00