]> Cypherpunks repositories - gostls13.git/commitdiff
bytes: fix TrimSpace typo
authorPeter Mundy <go.peter.90@gmail.com>
Sun, 9 Jan 2011 17:11:16 +0000 (12:11 -0500)
committerAdam Langley <agl@golang.org>
Sun, 9 Jan 2011 17:11:16 +0000 (12:11 -0500)
Fixes #1401.

R=golang-dev, agl1
CC=golang-dev
https://golang.org/cl/3937041

src/pkg/bytes/bytes.go

index c0937ca3004418fe827aa86c620d81885d5d31ed..bfe2ef39db500adb860c90f1ba2c4d607cd7bce7 100644 (file)
@@ -547,7 +547,7 @@ func TrimRight(s []byte, cutset string) []byte {
 }
 
 // TrimSpace returns a subslice of s by slicing off all leading and
-// trailing white space, as as defined by Unicode.
+// trailing white space, as defined by Unicode.
 func TrimSpace(s []byte) []byte {
        return TrimFunc(s, unicode.IsSpace)
 }