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:
Brad Fitzpatrick 2018-09-26 21:10:21 +00:00
parent e35a41261b
commit da0d1a44ba
56 changed files with 104 additions and 104 deletions

View file

@ -219,5 +219,5 @@ func toJSON(m interface{}) string {
if err != nil {
log.Fatal(err)
}
return strings.Replace(string(js), ",", ", ", -1)
return strings.ReplaceAll(string(js), ",", ", ")
}