Commit 3672f96a authored by astaxie's avatar astaxie

fix the typo

parent 68311b28
...@@ -339,7 +339,7 @@ var mimemaps = map[string]string{ ...@@ -339,7 +339,7 @@ var mimemaps = map[string]string{
".pvu": "paleovu/x-pv", ".pvu": "paleovu/x-pv",
".pwz": "application/vndms-powerpoint", ".pwz": "application/vndms-powerpoint",
".py": "text/x-scriptphyton", ".py": "text/x-scriptphyton",
".pyc": "applicaiton/x-bytecodepython", ".pyc": "application/x-bytecodepython",
".qcp": "audio/vndqcelp", ".qcp": "audio/vndqcelp",
".qd3": "x-world/x-3dmf", ".qd3": "x-world/x-3dmf",
".qd3d": "x-world/x-3dmf", ".qd3d": "x-world/x-3dmf",
......
...@@ -101,7 +101,7 @@ func parserComments(comments *ast.CommentGroup, funcName, controllerName, pkgpat ...@@ -101,7 +101,7 @@ func parserComments(comments *ast.CommentGroup, funcName, controllerName, pkgpat
elements := strings.TrimLeft(t, "@router ") elements := strings.TrimLeft(t, "@router ")
e1 := strings.SplitN(elements, " ", 2) e1 := strings.SplitN(elements, " ", 2)
if len(e1) < 1 { if len(e1) < 1 {
return errors.New("you should has router infomation") return errors.New("you should has router information")
} }
key := pkgpath + ":" + controllerName key := pkgpath + ":" + controllerName
cc := ControllerComments{} cc := ControllerComments{}
......
...@@ -41,7 +41,7 @@ func TestFileExists(t *testing.T) { ...@@ -41,7 +41,7 @@ func TestFileExists(t *testing.T) {
} }
if FileExists(noExistedFile) { if FileExists(noExistedFile) {
t.Errorf("Wierd, how could this file exists: %s", noExistedFile) t.Errorf("Weird, how could this file exists: %s", noExistedFile)
} }
} }
...@@ -52,7 +52,7 @@ func TestSearchFile(t *testing.T) { ...@@ -52,7 +52,7 @@ func TestSearchFile(t *testing.T) {
} }
t.Log(path) t.Log(path)
path, err = SearchFile(noExistedFile, ".") _, err = SearchFile(noExistedFile, ".")
if err == nil { if err == nil {
t.Errorf("err shouldnot be nil, got path: %s", SelfDir()) t.Errorf("err shouldnot be nil, got path: %s", SelfDir())
} }
......
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