]> Cypherpunks repositories - gostls13.git/commit
container/list: mark must be an element of the list
authorMarkus Zimmermann <zimmski@gmail.com>
Fri, 14 Feb 2014 00:43:52 +0000 (16:43 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 14 Feb 2014 00:43:52 +0000 (16:43 -0800)
commite0bb5ba52cff479f70d4351d3fafa35e1655839b
treeceea3fa26c2676c7d76b191e49069d2815ed5a7c
parenta9495638906f1c2eb29fe2f5f51ce8413a08ec0b
container/list: mark must be an element of the list

The methods MoveAfter and MoveBefore of the container/list package did silently corrupt the interal structure of the list if a mark element is used which is not an element of the list.

LGTM=gri
R=golang-codereviews, gobot, gri
CC=golang-codereviews
https://golang.org/cl/60980043
src/pkg/container/list/list.go
src/pkg/container/list/list_test.go