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 <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>
This commit is contained in:
Sean Liao 2025-09-14 16:24:57 +01:00 committed by Gopher Robot
parent 0b26678db2
commit ac82fe68aa
2 changed files with 2 additions and 2 deletions

View 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 // 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 // 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 // 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. // satisfying f(c) are discarded.
// //
// FieldsFunc makes no guarantees about the order in which it calls f(c) // FieldsFunc makes no guarantees about the order in which it calls f(c)

View 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) // 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 // 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 // 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. // are discarded.
// //
// FieldsFunc makes no guarantees about the order in which it calls f(c) // FieldsFunc makes no guarantees about the order in which it calls f(c)