aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2010-09-03 17:11:56 +1000
committerRob Pike <r@golang.org>2010-09-03 17:11:56 +1000
commitd94fedabb435ec0afbecace94d0711184461440a (patch)
treec5f8b0fe3be1f5446661b1e52598f87b9eacdfad
parent1cb951d9943727bd1587c539e0d132a6a532aa72 (diff)
downloadgo-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.go1
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