mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
strings: remove redundant "runs" from string.Fields docstring
Change-Id: I502b24af186fc56fe953acf7ab7d29f8eefb9c07
GitHub-Last-Rev: 1a4edf4312
GitHub-Pull-Request: golang/go#75156
Reviewed-on: https://go-review.googlesource.com/c/go/+/699215
Reviewed-by: Sean Liao <sean@liao.dev>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Florian Lehner <lehner.florian86@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
parent
90c21fa5b6
commit
7f1864b0a8
1 changed files with 1 additions and 1 deletions
|
|
@ -379,7 +379,7 @@ var asciiSpace = [256]uint8{'\t': 1, '\n': 1, '\v': 1, '\f': 1, '\r': 1, ' ': 1}
|
||||||
// Fields splits the string s around each instance of one or more consecutive white space
|
// Fields splits the string s around each instance of one or more consecutive white space
|
||||||
// characters, as defined by [unicode.IsSpace], returning a slice of substrings of s or an
|
// characters, as defined by [unicode.IsSpace], returning a slice of substrings of s or an
|
||||||
// empty slice if s contains only white space. Every element of the returned slice is
|
// empty slice if s contains only white space. Every element of the returned slice is
|
||||||
// non-empty. Unlike [Split], leading and trailing runs runs of white space characters
|
// non-empty. Unlike [Split], leading and trailing runs of white space characters
|
||||||
// are discarded.
|
// are discarded.
|
||||||
func Fields(s string) []string {
|
func Fields(s string) []string {
|
||||||
// First count the fields.
|
// First count the fields.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue