Skip to content

Commit 557b4d6

Browse files
redteampanda-nggopherbot
authored andcommitted
comment: change slice to string in function comment/help
Comment is outdated, it should say a string is returned Change-Id: I7d40135aac22845dbc1f91e02e5776cc7d58eda7 GitHub-Last-Rev: 08ee556 GitHub-Pull-Request: #75980 Reviewed-on: https://go-review.googlesource.com/c/go/+/713040 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Robert Griesemer <[email protected]> Auto-Submit: Robert Griesemer <[email protected]> Reviewed-by: Keith Randall <[email protected]>
1 parent d09a8c8 commit 557b4d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/strings/strings.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,8 +1085,9 @@ func trimRightUnicode(s, cutset string) string {
10851085
return s
10861086
}
10871087

1088-
// TrimSpace returns a slice of the string s, with all leading
1089-
// and trailing white space removed, as defined by Unicode.
1088+
// TrimSpace returns a slice (substring) of the string s,
1089+
// with all leading and trailing white space removed,
1090+
// as defined by Unicode.
10901091
func TrimSpace(s string) string {
10911092
// Fast path for ASCII: look for the first ASCII non-space byte.
10921093
for lo, c := range []byte(s) {

0 commit comments

Comments
 (0)