diff --git a/src/strings/strings.go b/src/strings/strings.go index 1efd00d5f09c8a..80cea67d626d2e 100644 --- a/src/strings/strings.go +++ b/src/strings/strings.go @@ -1085,8 +1085,9 @@ func trimRightUnicode(s, cutset string) string { return s } -// TrimSpace returns a slice of the string s, with all leading -// and trailing white space removed, as defined by Unicode. +// TrimSpace returns a slice (substring) of the string s, +// with all leading and trailing white space removed, +// as defined by Unicode. func TrimSpace(s string) string { // Fast path for ASCII: look for the first ASCII non-space byte. for lo, c := range []byte(s) {