Fix comments as per Josh's feedback (#3284)

This commit is contained in:
George Robinson 2023-03-07 11:25:20 +00:00 committed by GitHub
parent 012dbc9d81
commit 72b0cb0f40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -171,8 +171,8 @@ var DefaultFuncs = FuncMap{
"toUpper": strings.ToUpper,
"toLower": strings.ToLower,
"title": func(text string) string {
// casers should not be shared between goroutines, instead
// create a new caser each time this function is called
// Casers should not be shared between goroutines, instead
// create a new caser each time this function is called.
return cases.Title(language.AmericanEnglish).String(text)
},
"trimSpace": strings.TrimSpace,