]> Cypherpunks repositories - gostls13.git/commitdiff
doc/progs/slices.go: fix typo in comment
authorRob Pike <r@golang.org>
Mon, 5 Aug 2013 03:35:42 +0000 (13:35 +1000)
committerRob Pike <r@golang.org>
Mon, 5 Aug 2013 03:35:42 +0000 (13:35 +1000)
Fixes #6025.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/12387046

doc/progs/slices.go

index 0461684b705a680ff11d60cbbe28012ee991de9a..f9af5feaa05dad607148a2f49a175347206af148 100644 (file)
@@ -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 {