]> Cypherpunks repositories - gostls13.git/commitdiff
bytes,strings: remove reference to non-existent SplitFunc
authorSean Liao <sean@liao.dev>
Sun, 14 Sep 2025 15:24:57 +0000 (16:24 +0100)
committerGopher Robot <gobot@golang.org>
Tue, 16 Sep 2025 16:42:15 +0000 (09:42 -0700)
Fixes #75462
Updates #72841

Change-Id: Ie2cbbdb031578a3138ecc6e60c0025807f1990e6
Reviewed-on: https://go-review.googlesource.com/c/go/+/703675
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/bytes/bytes.go
src/strings/strings.go

index 9a7f4ee3c93afbd363804bd668779b766875d072..87183c01955829a05b0bcde67757af945244ff1f 100644 (file)
@@ -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)
index 3cc3e79f982248f0d096986edfe1734bdb7989bc..1efd00d5f09c8a0eecbba440a691ceb509f86886 100644 (file)
@@ -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)