Skip to content

Commit 6cb3f58

Browse files
committed
fix comments typo in beego package/
1 parent 8b0929b commit 6cb3f58

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ func (c *Controller) ServeJson(encoding ...bool) {
241241
c.Ctx.Output.Json(c.Data["json"], hasIndent, hasencoding)
242242
}
243243

244-
// ServeJson sends a jsonp response.
244+
// ServeJsonp sends a jsonp response.
245245
func (c *Controller) ServeJsonp() {
246246
var hasIndent bool
247247
if RunMode == "prod" {
@@ -252,7 +252,7 @@ func (c *Controller) ServeJsonp() {
252252
c.Ctx.Output.Jsonp(c.Data["jsonp"], hasIndent)
253253
}
254254

255-
// ServeJson sends xml response.
255+
// ServeXml sends xml response.
256256
func (c *Controller) ServeXml() {
257257
var hasIndent bool
258258
if RunMode == "prod" {

template.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717

1818
var (
1919
beegoTplFuncMap template.FuncMap
20-
// beego template caching map ans supported template file extensions.
20+
// beego template caching map and supported template file extensions.
2121
BeeTemplates map[string]*template.Template
2222
BeeTemplateExt []string
2323
)
@@ -89,7 +89,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error {
8989
return nil
9090
}
9191

92-
// return this path has supported template extension of beego or not.
92+
// return this path contains supported template extension of beego or not.
9393
func HasTemplateExt(paths string) bool {
9494
for _, v := range BeeTemplateExt {
9595
if strings.HasSuffix(paths, "."+v) {

templatefunc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func AssetsJs(src string) template.HTML {
203203
return template.HTML(text)
204204
}
205205

206-
// returns stylesheet link tag with str string.
206+
// returns stylesheet link tag with src string.
207207
func AssetsCss(src string) template.HTML {
208208
text := string(src)
209209

0 commit comments

Comments
 (0)