1
0
mirror of https://github.com/golang/go synced 2024-11-12 10:00:25 -07:00

list: update comment to state that the zero value is ready to use.

R=gri
CC=golang-dev
https://golang.org/cl/2147042
This commit is contained in:
Rob Pike 2010-09-03 17:11:56 +10:00
parent 1cb951d994
commit d94fedabb4

View File

@ -25,6 +25,7 @@ func (e *Element) Next() *Element { return e.next }
func (e *Element) Prev() *Element { return e.prev }
// List represents a doubly linked list.
// The zero value for List is an empty list ready to use.
type List struct {
front, back *Element
len int