aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/strings/builder.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2022-03-16 10:31:57 -0700
committerIan Lance Taylor <iant@golang.org>2022-03-16 13:52:32 -0700
commit69921f4a7ec081c5b37dae13e3372003e4efd49f (patch)
tree3c485503e44039e60d49bc2450e9a28153496706 /libgo/go/strings/builder.go
parent7fd6e36ea9aa8575841ff1da08b4aebc0298abe2 (diff)
downloadgcc-69921f4a7ec081c5b37dae13e3372003e4efd49f.zip
gcc-69921f4a7ec081c5b37dae13e3372003e4efd49f.tar.gz
gcc-69921f4a7ec081c5b37dae13e3372003e4efd49f.tar.bz2
libgo: update to final Go 1.18 release
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/393377
Diffstat (limited to 'libgo/go/strings/builder.go')
-rw-r--r--libgo/go/strings/builder.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/libgo/go/strings/builder.go b/libgo/go/strings/builder.go
index 547e52e84..ba4df61 100644
--- a/libgo/go/strings/builder.go
+++ b/libgo/go/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