Commit 2f5a5be2 authored by Roger Peppe's avatar Roger Peppe Committed by Rob Pike

strings: fix description of FieldsFunc

R=r
CC=golang-dev
https://golang.org/cl/3814041
parent 8184778a
...@@ -215,8 +215,8 @@ func Fields(s string) []string { ...@@ -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) // 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 // and returns an array of slices of s. If all code points in s satisfy f(c) or the
// is returned. // string is empty, an empty slice is returned.
func FieldsFunc(s string, f func(int) bool) []string { func FieldsFunc(s string, f func(int) bool) []string {
// First count the fields. // First count the fields.
n := 0 n := 0
......
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