mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue