Skip to content

Commit ac82fe6

Browse files
seankhliaogopherbot
authored andcommitted
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 <[email protected]> Auto-Submit: Alan Donovan <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> Reviewed-by: Alan Donovan <[email protected]>
1 parent 0b26678 commit ac82fe6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bytes/bytes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ func Fields(s []byte) [][]byte {
508508
// It splits the slice s at each run of code points c satisfying f(c) and
509509
// returns a slice of subslices of s. If all code points in s satisfy f(c), or
510510
// len(s) == 0, an empty slice is returned. Every element of the returned slice is
511-
// non-empty. Unlike [SplitFunc], leading and trailing runs of code points
511+
// non-empty. Unlike [Split], leading and trailing runs of code points
512512
// satisfying f(c) are discarded.
513513
//
514514
// FieldsFunc makes no guarantees about the order in which it calls f(c)

src/strings/strings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ func Fields(s string) []string {
433433
// FieldsFunc splits the string s at each run of Unicode code points c satisfying f(c)
434434
// and returns an array of slices of s. If all code points in s satisfy f(c) or the
435435
// string is empty, an empty slice is returned. Every element of the returned slice is
436-
// non-empty. Unlike [SplitFunc], leading and trailing runs of code points satisfying f(c)
436+
// non-empty. Unlike [Split], leading and trailing runs of code points satisfying f(c)
437437
// are discarded.
438438
//
439439
// FieldsFunc makes no guarantees about the order in which it calls f(c)

0 commit comments

Comments
 (0)