diff options
author | David Symonds <dsymonds@golang.org> | 2009-04-20 00:43:10 -0700 |
---|---|---|
committer | David Symonds <dsymonds@golang.org> | 2009-04-20 00:43:10 -0700 |
commit | 09fb7e3a93fbde2f4fedddc94cc9224bea9a974d (patch) | |
tree | 0a3c0225c7adf57c2171ef3e2064c86973605376 | |
parent | 796accfa71507b7fe90e4ebc35f189c6fb413ae6 (diff) | |
download | golang-09fb7e3a93fbde2f4fedddc94cc9224bea9a974d.tar.gz |
Oops, forgot to commit this change.
R=r
APPROVED=r
DELTA=3 (1 added, 0 deleted, 2 changed)
OCL=27624
CL=27626
-rw-r--r-- | src/lib/container/iterable.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/container/iterable.go b/src/lib/container/iterable.go index 61c744c01..bdcce11d0 100644 --- a/src/lib/container/iterable.go +++ b/src/lib/container/iterable.go @@ -79,8 +79,9 @@ func Find(iter Iterable, f func(interface {}) bool) interface {} { return nil } -// An injector function takes two arguments, an accumulated value and an -// element, and returns the next accumulated value. See the Inject function. +// Injector is a type representing a function that takes two arguments, +// an accumulated value and an element, and returns the next accumulated value. +// See the Inject function. type Injector func(interface {}, interface {}) interface{}; // Inject combines the elements of iter by repeatedly calling f with an |