1
0
mirror of https://github.com/golang/go synced 2024-10-04 06:11:21 -06:00
go/src/pkg/container
Andrew Gerrand 01389b966e container/list: fix Remove bug and use pointer to self as identifier
Remove wasn't nil'ing the *Element.id. This property was exploited
by MoveToFront and MoveToBack internally, so I renamed the existing
Remove to "remove", and created an exported wrapper "Remove" that does
the right thing for the user's sake.

Also, saved an allocation by using *List as the id rather than *byte.

Fixes #1224.

R=rsc, dsymonds
CC=golang-dev
https://golang.org/cl/2685042
2010-10-25 14:37:30 +11:00
..
heap build: no required environment variables 2010-08-18 10:08:49 -04:00
list container/list: fix Remove bug and use pointer to self as identifier 2010-10-25 14:37:30 +11:00
ring build: no required environment variables 2010-08-18 10:08:49 -04:00
vector build: no required environment variables 2010-08-18 10:08:49 -04:00