1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:24:44 -07:00
go/src/container
Joe Kyo 2edeb23bf5 container/list: remove temporary variable n
The variable `n` for saving the pointer of the next
element when insert new element into the list turns
out to be unnecessary.

Change-Id: I17b85fd8350738815c320a83945525b60c2f04c5
Reviewed-on: https://go-review.googlesource.com/c/go/+/207037
Reviewed-by: Robert Griesemer <gri@golang.org>
2020-02-21 18:32:32 +00:00
..
heap container/heap: avoid memory leak in example 2019-02-26 23:42:26 +00:00
list container/list: remove temporary variable n 2020-02-21 18:32:32 +00:00
ring all: shorten some tests 2019-05-22 12:54:00 +00:00