]> Cypherpunks repositories - gostls13.git/commitdiff
strings: remove redundant "runs" from string.Fields docstring
authorBrad <brad.cypert@gmail.com>
Tue, 26 Aug 2025 18:16:11 +0000 (18:16 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 28 Aug 2025 08:55:16 +0000 (01:55 -0700)
Change-Id: I502b24af186fc56fe953acf7ab7d29f8eefb9c07
GitHub-Last-Rev: 1a4edf431217d9c9ebf78f228926c297e51dd54a
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>
src/strings/strings.go

index d2cda74f68752e4f9fe252044601e0b07a3d65c2..91c6ddef669f3089a9602b77b83faed4579b0fa3 100644 (file)
@@ -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
 // 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
-// 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.
 func Fields(s string) []string {
        // First count the fields.