Skip to content

Commit

Permalink
Merge pull request Masterminds#144 from CodeLingoBot/rewrite
Browse files Browse the repository at this point in the history
Fix function comments based on best practices from Effective Go
  • Loading branch information
mattfarina authored Apr 25, 2019
2 parents 9f8fcef + 158b079 commit 2625cd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func FuncMap() template.FuncMap {
return HtmlFuncMap()
}

// HermeticTextFuncMap returns a 'text/template'.FuncMap with only repeatable functions.
// HermeticTxtFuncMap returns a 'text/template'.FuncMap with only repeatable functions.
func HermeticTxtFuncMap() ttemplate.FuncMap {
r := TxtFuncMap()
for _, name := range nonhermeticFunctions {
Expand All @@ -42,7 +42,7 @@ func HermeticHtmlFuncMap() template.FuncMap {
return r
}

// TextFuncMap returns a 'text/template'.FuncMap
// TxtFuncMap returns a 'text/template'.FuncMap
func TxtFuncMap() ttemplate.FuncMap {
return ttemplate.FuncMap(GenericFuncMap())
}
Expand Down

0 comments on commit 2625cd4

Please sign in to comment.