diff --git a/doc/progs/slices.go b/doc/progs/slices.go index 0461684b705..f9af5feaa05 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 {