From a5a6546b917a09296b50085639185f90852c2593 Mon Sep 17 00:00:00 2001 From: yuanxuan Date: Wed, 21 Sep 2016 19:33:12 +0800 Subject: [PATCH] fix a spelling mistake --- parser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parser.go b/parser.go index ffcd27a4..d40ee3ce 100644 --- a/parser.go +++ b/parser.go @@ -49,7 +49,7 @@ var ( genInfoList map[string][]ControllerComments ) -const coomentPrefix = "commentsRouter_" +const commentPrefix = "commentsRouter_" func init() { pkgLastupdate = make(map[string]int64) @@ -58,7 +58,7 @@ func init() { func parserPkg(pkgRealpath, pkgpath string) error { rep := strings.NewReplacer("\\", "_", "/", "_", ".", "_") commentFilename, _ = filepath.Rel(AppPath, pkgRealpath) - commentFilename = coomentPrefix + rep.Replace(commentFilename) + ".go" + commentFilename = commentPrefix + rep.Replace(commentFilename) + ".go" if !compareFile(pkgRealpath) { logs.Info(pkgRealpath + " no changed") return nil