summaryrefslogtreecommitdiff
path: root/doc/progs/slices.go
diff options
context:
space:
mode:
Diffstat (limited to 'doc/progs/slices.go')
-rw-r--r--doc/progs/slices.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/progs/slices.go b/doc/progs/slices.go
index 0461684b7..f9af5feaa 100644
--- a/doc/progs/slices.go
+++ b/doc/progs/slices.go
@@ -28,7 +28,7 @@ func AppendByte(slice []byte, data ...byte) []byte {
// STOP OMIT
// 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 _, i := range s {