mirror of
https://github.com/golang/go
synced 2024-11-11 20:01:37 -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:
parent
6ab49fbc6e
commit
c43cca7d92
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user