aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime-gdb_test.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2018-09-26 21:10:21 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2018-09-26 22:14:25 +0000
commitda0d1a44bac379f5acedb1933f85400de08f4ac6 (patch)
tree20ac5d1ee7aeed87d3fa33f7e401309d62207f30 /src/runtime/runtime-gdb_test.go
parente35a41261b19589f40d32bd66274c23ab4b9b32e (diff)
downloadgo-da0d1a44bac379f5acedb1933f85400de08f4ac6.tar.gz
go-da0d1a44bac379f5acedb1933f85400de08f4ac6.zip
all: use strings.ReplaceAll and bytes.ReplaceAll where applicable
I omitted vendor directories and anything necessary for bootstrapping. (Tested by bootstrapping with Go 1.4) Updates #27864 Change-Id: I7d9b68d0372d3a34dee22966cca323513ece7e8a Reviewed-on: https://go-review.googlesource.com/137856 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/runtime-gdb_test.go')
-rw-r--r--src/runtime/runtime-gdb_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/runtime-gdb_test.go b/src/runtime/runtime-gdb_test.go
index 1ed6b39303..26f507159b 100644
--- a/src/runtime/runtime-gdb_test.go
+++ b/src/runtime/runtime-gdb_test.go
@@ -490,7 +490,7 @@ func TestGdbConst(t *testing.T) {
}
got, _ := exec.Command("gdb", args...).CombinedOutput()
- sgot := strings.Replace(string(got), "\r\n", "\n", -1)
+ sgot := strings.ReplaceAll(string(got), "\r\n", "\n")
t.Logf("output %q", sgot)