mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue