diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/go-slices-usage-and-internals.article | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/go-slices-usage-and-internals.article b/content/go-slices-usage-and-internals.article index d4a50fd..4ba1365 100644 --- a/content/go-slices-usage-and-internals.article +++ b/content/go-slices-usage-and-internals.article @@ -190,7 +190,7 @@ To append one slice to another, use `...` to expand the second argument to a lis Since the zero value of a slice (`nil`) acts like a zero-length slice, you can declare a slice variable and then append to it in a loop: // Filter returns a new slice holding only - // the elements of s that satisfy f() + // the elements of s that satisfy fn() func Filter(s []int, fn func(int) bool) []int { var p []int // == nil for _, v := range s { |