aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mkpreempt.go
diff options
context:
space:
mode:
authorPolina Osadcha <polliosa@google.com>2020-06-18 16:17:13 +0300
committerMartin Möhrmann <moehrmann@google.com>2020-08-17 04:07:23 +0000
commit6f99b33c18266a8858af96163de97173bdf6f081 (patch)
tree7db673aa7998efe9498978701fd404387a561d30 /src/runtime/mkpreempt.go
parentf7fc25ed5a16ee7678680ffd0bcc3078cc249e0a (diff)
downloadgo-6f99b33c18266a8858af96163de97173bdf6f081.tar.gz
go-6f99b33c18266a8858af96163de97173bdf6f081.zip
all: replace Replace(..., -1) with ReplaceAll(...)
Change-Id: I8f7cff7a83a9c50bfa3331e8b40e4a6c2e1c0eee Reviewed-on: https://go-review.googlesource.com/c/go/+/245198 Run-TryBot: Martin Möhrmann <moehrmann@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/runtime/mkpreempt.go')
-rw-r--r--src/runtime/mkpreempt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mkpreempt.go b/src/runtime/mkpreempt.go
index 1fe77663b9..44dea22ef3 100644
--- a/src/runtime/mkpreempt.go
+++ b/src/runtime/mkpreempt.go
@@ -131,7 +131,7 @@ func header(arch string) {
func p(f string, args ...interface{}) {
fmted := fmt.Sprintf(f, args...)
- fmt.Fprintf(out, "\t%s\n", strings.Replace(fmted, "\n", "\n\t", -1))
+ fmt.Fprintf(out, "\t%s\n", strings.ReplaceAll(fmted, "\n", "\n\t"))
}
func label(l string) {