diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2018-09-26 21:10:21 +0000 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-09-26 22:14:25 +0000 |
| commit | da0d1a44bac379f5acedb1933f85400de08f4ac6 (patch) | |
| tree | 20ac5d1ee7aeed87d3fa33f7e401309d62207f30 /src/path/filepath/path_windows.go | |
| parent | e35a41261b19589f40d32bd66274c23ab4b9b32e (diff) | |
| download | go-da0d1a44bac379f5acedb1933f85400de08f4ac6.tar.xz | |
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/path/filepath/path_windows.go')
| -rw-r--r-- | src/path/filepath/path_windows.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path/filepath/path_windows.go b/src/path/filepath/path_windows.go index 519b6ebc32..6a144d9e0b 100644 --- a/src/path/filepath/path_windows.go +++ b/src/path/filepath/path_windows.go @@ -100,7 +100,7 @@ func splitList(path string) []string { // Remove quotes. for i, s := range list { - list[i] = strings.Replace(s, `"`, ``, -1) + list[i] = strings.ReplaceAll(s, `"`, ``) } return list |
