From: Sean Liao Date: Sun, 14 Sep 2025 15:24:57 +0000 (+0100) Subject: bytes,strings: remove reference to non-existent SplitFunc X-Git-Tag: go1.26rc1~852 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ac82fe68aa;p=gostls13.git bytes,strings: remove reference to non-existent SplitFunc Fixes #75462 Updates #72841 Change-Id: Ie2cbbdb031578a3138ecc6e60c0025807f1990e6 Reviewed-on: https://go-review.googlesource.com/c/go/+/703675 LUCI-TryBot-Result: Go LUCI Auto-Submit: Alan Donovan Reviewed-by: Michael Knyszek Reviewed-by: Alan Donovan --- diff --git a/src/bytes/bytes.go b/src/bytes/bytes.go index 9a7f4ee3c9..87183c0195 100644 --- a/src/bytes/bytes.go +++ b/src/bytes/bytes.go @@ -508,7 +508,7 @@ func Fields(s []byte) [][]byte { // It splits the slice s at each run of code points c satisfying f(c) and // returns a slice of subslices of s. If all code points in s satisfy f(c), or // len(s) == 0, an empty slice is returned. Every element of the returned slice is -// non-empty. Unlike [SplitFunc], leading and trailing runs of code points +// non-empty. Unlike [Split], leading and trailing runs of code points // satisfying f(c) are discarded. // // FieldsFunc makes no guarantees about the order in which it calls f(c) diff --git a/src/strings/strings.go b/src/strings/strings.go index 3cc3e79f98..1efd00d5f0 100644 --- a/src/strings/strings.go +++ b/src/strings/strings.go @@ -433,7 +433,7 @@ 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. Every element of the returned slice is -// non-empty. Unlike [SplitFunc], leading and trailing runs of code points satisfying f(c) +// non-empty. Unlike [Split], leading and trailing runs of code points satisfying f(c) // are discarded. // // FieldsFunc makes no guarantees about the order in which it calls f(c)