1
0
mirror of https://github.com/golang/go synced 2024-11-25 08:57:58 -07:00

bytes: fix TrimSpace typo

Fixes #1401.

R=golang-dev, agl1
CC=golang-dev
https://golang.org/cl/3937041
This commit is contained in:
Peter Mundy 2011-01-09 12:11:16 -05:00 committed by Adam Langley
parent 0c02bd1801
commit 2b0a276129

View 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)
}