1
0
mirror of https://github.com/golang/go synced 2024-10-01 09:48:32 -06:00

container/list: document iteration

R=rsc
CC=golang-dev
https://golang.org/cl/2768042
This commit is contained in:
Andrew Gerrand 2010-10-29 08:48:16 +11:00
parent 302b0ff942
commit 6062515a93

View File

@ -3,6 +3,12 @@
// license that can be found in the LICENSE file.
// The list package implements a doubly linked list.
//
// To iterate over a list (where l is a *List):
// for e := l.Front(); e != nil; e = e.Next() {
// // do something with e.Value
// }
//
package list
// Element is an element in the linked list.