]> Cypherpunks repositories - gostls13.git/commitdiff
list: update comment to state that the zero value is ready to use.
authorRob Pike <r@golang.org>
Fri, 3 Sep 2010 07:11:56 +0000 (17:11 +1000)
committerRob Pike <r@golang.org>
Fri, 3 Sep 2010 07:11:56 +0000 (17:11 +1000)
R=gri
CC=golang-dev
https://golang.org/cl/2147042

src/pkg/container/list/list.go

index 40c9680999abf37671a8d3b7a850ecd5eda2f0d3..16f7a23f1d0fd1f25e1d23c1ad102981bbb17775 100644 (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