diff options
author | Rob Pike <r@golang.org> | 2010-09-03 17:11:56 +1000 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2010-09-03 17:11:56 +1000 |
commit | d94fedabb435ec0afbecace94d0711184461440a (patch) | |
tree | c5f8b0fe3be1f5446661b1e52598f87b9eacdfad | |
parent | 1cb951d9943727bd1587c539e0d132a6a532aa72 (diff) | |
download | go-d94fedabb435ec0afbecace94d0711184461440a.tar.gz go-d94fedabb435ec0afbecace94d0711184461440a.zip |
list: update comment to state that the zero value is ready to use.
R=gri
CC=golang-dev
https://golang.org/cl/2147042
-rw-r--r-- | src/pkg/container/list/list.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 |