From d94fedabb435ec0afbecace94d0711184461440a Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Fri, 3 Sep 2010 17:11:56 +1000 Subject: [PATCH] list: update comment to state that the zero value is ready to use. R=gri CC=golang-dev https://golang.org/cl/2147042 --- src/pkg/container/list/list.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pkg/container/list/list.go b/src/pkg/container/list/list.go index 40c9680999..16f7a23f1d 100644 --- a/src/pkg/container/list/list.go +++ b/src/pkg/container/list/list.go @@ -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