From c43cca7d92a0188b956584bc76ceef94af543bc3 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 5 Aug 2013 13:35:42 +1000 Subject: [PATCH] doc/progs/slices.go: fix typo in comment Fixes #6025. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/12387046 --- doc/progs/slices.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/progs/slices.go b/doc/progs/slices.go index 0461684b70..f9af5feaa0 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 { -- 2.48.1