• Robert Griesemer's avatar
    container/heap: update example code · b2d1a2b5
    Robert Griesemer authored
    - 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
    b2d1a2b5
Name
Last commit
Last update
..
heap Loading commit data...
list Loading commit data...
ring Loading commit data...