Commit 083f697c authored by astaxie's avatar astaxie Committed by GitHub

Merge pull request #2173 from axyu/develop

fix a spelling mistake
parents 9cafbf6a a5a6546b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment