Commit c43cca7d authored by Rob Pike's avatar Rob Pike

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

Fixes #6025.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/12387046
parent 6ab49fbc
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment