container/heap: Simplify the example.
container/heap: Simplify the example.

Using append simplifies the code and makes it work if
the initial capacity of the slice is smaller than the
number of items pushed.

R=golang-dev, gri
CC=golang-dev
https://codereview.appspot.com/6869060

Committer: Robert Griesemer <a6752097faebf1f02d80107d77a9be009089afe3@golang.org>

h8liu/golang,h8liu/golang,h8liu/golang,h8liu/golang,h8liu/golang,h8liu/golang,h8liu/golang