mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
e35a41261b
commit
da0d1a44ba
56 changed files with 104 additions and 104 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue