mirror of
https://github.com/golang/go
synced 2024-11-19 02:14:43 -07:00
container/list: document iteration
R=rsc CC=golang-dev https://golang.org/cl/2768042
This commit is contained in:
parent
302b0ff942
commit
6062515a93
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user