mirror of
https://github.com/golang/go
synced 2024-09-04 23:44:16 +00: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:
parent
1cb951d994
commit
d94fedabb4
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue