From: Brad Date: Tue, 26 Aug 2025 18:16:11 +0000 (+0000) Subject: strings: remove redundant "runs" from string.Fields docstring X-Git-Tag: go1.26rc1~1006 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7f1864b0a8;p=gostls13.git strings: remove redundant "runs" from string.Fields docstring 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 LUCI-TryBot-Result: Go LUCI Reviewed-by: Carlos Amedee Auto-Submit: Sean Liao Reviewed-by: Florian Lehner Reviewed-by: Cherry Mui --- diff --git a/src/strings/strings.go b/src/strings/strings.go index d2cda74f68..91c6ddef66 100644 --- a/src/strings/strings.go +++ b/src/strings/strings.go @@ -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.