aboutsummaryrefslogtreecommitdiff
path: root/src/strings
diff options
context:
space:
mode:
authorPraveen Kumar <praveen+git@kumar.in>2020-04-23 21:49:53 +0000
committerRobert Griesemer <gri@golang.org>2020-04-23 22:10:10 +0000
commit6677a2a1fc5814417c3ab319e1717104e07a4c3f (patch)
tree21cfdf2e1e95f02700d674c17c3964cd261d4489 /src/strings
parent080a3ee8b26c8e324d40bcd832e9668ecda9af0b (diff)
downloadgo-6677a2a1fc5814417c3ab319e1717104e07a4c3f.tar.gz
go-6677a2a1fc5814417c3ab319e1717104e07a4c3f.zip
strings: remove an obsolete doc note for FieldsFunc
Fixes #38630 Change-Id: I0b2b693dd88821dcfc035cf552b687565bb55ef6 GitHub-Last-Rev: 291b1b4dcf074860492bb67008f4e8228c655652 GitHub-Pull-Request: golang/go#38631 Reviewed-on: https://go-review.googlesource.com/c/go/+/229763 Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/strings')
-rw-r--r--src/strings/strings.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/strings/strings.go b/src/strings/strings.go
index 314e2276d4..5f244d6e20 100644
--- a/src/strings/strings.go
+++ b/src/strings/strings.go
@@ -369,8 +369,6 @@ 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 all code points in s satisfy f(c) or the
// string is empty, an empty slice is returned.
-// FieldsFunc makes no guarantees about the order in which it calls f(c).
-// If f does not return consistent results for a given c, FieldsFunc may crash.
func FieldsFunc(s string, f func(rune) bool) []string {
// A span is used to record a slice of s of the form s[start:end].
// The start index is inclusive and the end index is exclusive.