aboutsummaryrefslogtreecommitdiff
path: root/src/strings
diff options
context:
space:
mode:
authorGeorge Looshch <looshch@loosh.ch>2022-01-15 21:43:05 +0200
committerDmitri Shuralyov <dmitshur@golang.org>2022-02-19 00:00:52 +0000
commite002cf4df7fcd9925916ed78df7ed2a49031ed2e (patch)
treed9106871bc4388aab1b943bb4bd53619c71f8822 /src/strings
parent61b5c866a9507524d0a3d7a7e0c892c975ca081b (diff)
downloadgo-e002cf4df7fcd9925916ed78df7ed2a49031ed2e.tar.gz
go-e002cf4df7fcd9925916ed78df7ed2a49031ed2e.zip
strings: fix typo in comment
Remove unnecessary whitespace in noescape comment Fixes #50634 Change-Id: I1c8d16c020b05678577d349470fac7e7ab8a10b7 Reviewed-on: https://go-review.googlesource.com/c/go/+/378815 Reviewed-by: Ian Lance Taylor <iant@golang.org> Trust: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'src/strings')
-rw-r--r--src/strings/builder.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/strings/builder.go b/src/strings/builder.go
index 547e52e84d..ba4df618bf 100644
--- a/src/strings/builder.go
+++ b/src/strings/builder.go
@@ -17,10 +17,9 @@ type Builder struct {
buf []byte
}
-// noescape hides a pointer from escape analysis. noescape is
-// the identity function but escape analysis doesn't think the
-// output depends on the input. noescape is inlined and currently
-// compiles down to zero instructions.
+// noescape hides a pointer from escape analysis. It is the identity function
+// but escape analysis doesn't think the output depends on the input.
+// noescape is inlined and currently compiles down to zero instructions.
// USE CAREFULLY!
// This was copied from the runtime; see issues 23382 and 7921.
//go:nosplit