From: Roger Peppe Date: Wed, 5 Jan 2011 00:23:29 +0000 (-0800) Subject: strings: fix description of FieldsFunc X-Git-Tag: weekly.2011-01-06~21 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2f5a5be237d8e115188398c30545a0e593269928;p=gostls13.git strings: fix description of FieldsFunc R=r CC=golang-dev https://golang.org/cl/3814041 --- diff --git a/src/pkg/strings/strings.go b/src/pkg/strings/strings.go index d8c695226d..98a0d5731e 100644 --- a/src/pkg/strings/strings.go +++ b/src/pkg/strings/strings.go @@ -215,8 +215,8 @@ func Fields(s string) []string { } // FieldsFunc splits the string s at each run of Unicode code points c satisfying f(c) -// and returns an array of slices of s. If no code points in s satisfy f(c), an empty slice -// is returned. +// and returns an array of slices of s. If all code points in s satisfy f(c) or the +// string is empty, an empty slice is returned. func FieldsFunc(s string, f func(int) bool) []string { // First count the fields. n := 0