Descriptioncontainer/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.
Patch Set 1 #Patch Set 2 : diff -r daabe25e67fe https://code.google.com/p/go #Patch Set 3 : diff -r daabe25e67fe https://code.google.com/p/go #MessagesTotal messages: 3
|