mirror of https://github.com/golang/go.git
bytes: fix TrimSpace typo
Fixes #1401. R=golang-dev, agl1 CC=golang-dev https://golang.org/cl/3937041
This commit is contained in:
parent
0c02bd1801
commit
2b0a276129
|
|
@ -547,7 +547,7 @@ func TrimRight(s []byte, cutset string) []byte {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TrimSpace returns a subslice of s by slicing off all leading and
|
// 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 {
|
func TrimSpace(s []byte) []byte {
|
||||||
return TrimFunc(s, unicode.IsSpace)
|
return TrimFunc(s, unicode.IsSpace)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue