aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/fix/typecheck.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/fix/typecheck.go')
-rw-r--r--src/cmd/fix/typecheck.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/fix/typecheck.go b/src/cmd/fix/typecheck.go
index eafb626c74..66e0cdcec0 100644
--- a/src/cmd/fix/typecheck.go
+++ b/src/cmd/fix/typecheck.go
@@ -193,12 +193,12 @@ func typecheck(cfg *TypeConfig, f *ast.File) (typeof map[interface{}]string, ass
var params, results []string
for _, p := range fn.Type.Params.List {
t := gofmt(p.Type)
- t = strings.Replace(t, "_Ctype_", "C.", -1)
+ t = strings.ReplaceAll(t, "_Ctype_", "C.")
params = append(params, t)
}
for _, r := range fn.Type.Results.List {
t := gofmt(r.Type)
- t = strings.Replace(t, "_Ctype_", "C.", -1)
+ t = strings.ReplaceAll(t, "_Ctype_", "C.")
results = append(results, t)
}
cfg.External["C."+fn.Name.Name[7:]] = joinFunc(params, results)