1
0
mirror of https://github.com/golang/go synced 2024-11-21 15:24:45 -07:00

doc/progs/slices.go: fix typo in comment

Fixes #6025.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/12387046
This commit is contained in:
Rob Pike 2013-08-05 13:35:42 +10:00
parent 6ab49fbc6e
commit c43cca7d92

View 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 {