We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d09a8c8 commit 557b4d6Copy full SHA for 557b4d6
src/strings/strings.go
@@ -1085,8 +1085,9 @@ func trimRightUnicode(s, cutset string) string {
1085
return s
1086
}
1087
1088
-// TrimSpace returns a slice of the string s, with all leading
1089
-// 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,
1090
+// as defined by Unicode.
1091
func TrimSpace(s string) string {
1092
// Fast path for ASCII: look for the first ASCII non-space byte.
1093
for lo, c := range []byte(s) {
0 commit comments