]> Cypherpunks repositories - gostls13.git/commitdiff
strings: use slice instead of list and array in Fields comment
authorMartin Möhrmann <moehrmann@google.com>
Mon, 14 Aug 2017 19:12:49 +0000 (21:12 +0200)
committerMartin Möhrmann <moehrmann@google.com>
Mon, 14 Aug 2017 21:25:53 +0000 (21:25 +0000)
Change-Id: I70b839ff0ae5f015587390a82616ebb1d657d71a
Reviewed-on: https://go-review.googlesource.com/55490
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/strings/strings.go

index 099fb8031bdf1cc2273ced056cd6942ccefb92f6..caabc5affd62dc3e8daae6c5a8f5f360760b8c2b 100644 (file)
@@ -310,8 +310,8 @@ func SplitAfter(s, sep string) []string {
 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 an array of substrings of s or an
-// empty list if s contains only 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.
 func Fields(s string) []string {
        // First count the fields.
        // This is an exact count if s is ASCII, otherwise it is an approximation.