1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 22:11:29 +00:00

Merge pull request #2173 from axyu/develop

fix a spelling mistake
This commit is contained in:
astaxie 2016-09-21 19:45:46 +08:00 committed by GitHub
commit 083f697c59

View File

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