]> Cypherpunks repositories - gostls13.git/commitdiff
comment: change slice to string in function comment/help
authorredteampanda-ng <31235211+redteampanda-ng@users.noreply.github.com>
Wed, 22 Oct 2025 06:38:55 +0000 (06:38 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 22 Oct 2025 16:13:14 +0000 (09:13 -0700)
Comment is outdated, it should say a string is returned

Change-Id: I7d40135aac22845dbc1f91e02e5776cc7d58eda7
GitHub-Last-Rev: 08ee556f0803dc0e2a765d431ac10758b4f26146
GitHub-Pull-Request: golang/go#75980
Reviewed-on: https://go-review.googlesource.com/c/go/+/713040
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/strings/strings.go

index 1efd00d5f09c8a0eecbba440a691ceb509f86886..80cea67d626d2e3445a29a4574fa3268de944763 100644 (file)
@@ -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) {