From 07aa189b6f547c69bd3785ee8065de57e9a2be69 Mon Sep 17 00:00:00 2001 From: astaxie Date: Fri, 8 Jan 2016 11:40:49 +0800 Subject: [PATCH] fix the miss arguments --- fix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fix.go b/fix.go index 9d3b3ca..a2111f2 100644 --- a/fix.go +++ b/fix.go @@ -135,7 +135,7 @@ func fixFile(file string) error { pareg = regexp.MustCompile(`Input.Params\)`) fixed = pareg.ReplaceAllString(fixed, "Input.Params())") // replace the v.Apis in docs.go - if strings.Contains("docs.go") { + if strings.Contains(file, "docs.go") { strings.Replace(fixed, "v.Apis", "v.APIs", -1) } err = os.Truncate(file, 0)