From 4401bfccdaca26ff1737473f1770baeb2b421e36 Mon Sep 17 00:00:00 2001 From: astaxie Date: Fri, 8 Jan 2016 11:44:38 +0800 Subject: [PATCH] assignment the result --- fix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fix.go b/fix.go index a2111f2..52583b2 100644 --- a/fix.go +++ b/fix.go @@ -136,7 +136,7 @@ func fixFile(file string) error { fixed = pareg.ReplaceAllString(fixed, "Input.Params())") // replace the v.Apis in docs.go if strings.Contains(file, "docs.go") { - strings.Replace(fixed, "v.Apis", "v.APIs", -1) + fixed = strings.Replace(fixed, "v.Apis", "v.APIs", -1) } err = os.Truncate(file, 0) if err != nil {