From 6cb3f588c759689102b8abadbffa0bb6ec764200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=82=85=E5=B0=8F=E9=BB=91?= Date: Sun, 22 Dec 2013 15:09:33 +0800 Subject: [PATCH] fix comments typo in beego package/ --- controller.go | 4 ++-- template.go | 4 ++-- templatefunc.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/controller.go b/controller.go index f14593a5..84c8cd74 100644 --- a/controller.go +++ b/controller.go @@ -241,7 +241,7 @@ func (c *Controller) ServeJson(encoding ...bool) { c.Ctx.Output.Json(c.Data["json"], hasIndent, hasencoding) } -// ServeJson sends a jsonp response. +// ServeJsonp sends a jsonp response. func (c *Controller) ServeJsonp() { var hasIndent bool if RunMode == "prod" { @@ -252,7 +252,7 @@ func (c *Controller) ServeJsonp() { c.Ctx.Output.Jsonp(c.Data["jsonp"], hasIndent) } -// ServeJson sends xml response. +// ServeXml sends xml response. func (c *Controller) ServeXml() { var hasIndent bool if RunMode == "prod" { diff --git a/template.go b/template.go index e604fcff..26f13cfc 100644 --- a/template.go +++ b/template.go @@ -17,7 +17,7 @@ import ( var ( beegoTplFuncMap template.FuncMap - // beego template caching map ans supported template file extensions. + // beego template caching map and supported template file extensions. BeeTemplates map[string]*template.Template BeeTemplateExt []string ) @@ -89,7 +89,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error { return nil } -// return this path has supported template extension of beego or not. +// return this path contains supported template extension of beego or not. func HasTemplateExt(paths string) bool { for _, v := range BeeTemplateExt { if strings.HasSuffix(paths, "."+v) { diff --git a/templatefunc.go b/templatefunc.go index 190b448d..1eb40c0f 100644 --- a/templatefunc.go +++ b/templatefunc.go @@ -203,7 +203,7 @@ func AssetsJs(src string) template.HTML { return template.HTML(text) } -// returns stylesheet link tag with str string. +// returns stylesheet link tag with src string. func AssetsCss(src string) template.HTML { text := string(src)