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
|
|
@ -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), ",", ", ")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue