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:
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
|
||||
// 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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user