go/src/container
WhisperRain 7a9968f96f container/heap: avoid memory leak in example
Set element in slice to nil avoiding memory leak.

Change-Id: I9dbef9a0466407011e326725d3a0b681cd815389
GitHub-Last-Rev: 1bae5d3758
GitHub-Pull-Request: golang/go#30386
Reviewed-on: https://go-review.googlesource.com/c/163601
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
2019-02-26 23:42:26 +00:00
..
heap container/heap: avoid memory leak in example 2019-02-26 23:42:26 +00:00
list container/list: combining insert and remove operations while moving elements within a list. 2018-10-26 20:47:01 +00:00
ring container/ring: fix example_test.go 2017-10-31 03:52:55 +00:00