assignment the result

This commit is contained in:
astaxie 2016-01-08 11:44:38 +08:00
parent 07aa189b6f
commit 4401bfccda
1 changed files with 1 additions and 1 deletions

2
fix.go
View File

@ -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 {