Improves NeuterAccents godoc

This commit is contained in:
Joseph Salisbury 2017-10-13 11:08:46 +01:00
parent e67d870304
commit 242208d9a2
No known key found for this signature in database
GPG Key ID: 1C6A41349CB55511
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ func UnicodeSanitize(s string) string {
return string(target)
}
// Transform characters with accents into plan forms
// Transform characters with accents into plain forms.
func NeuterAccents(s string) string {
t := transform.Chain(norm.NFD, transform.RemoveFunc(isMn), norm.NFC)
result, _, _ := transform.String(t, string(s))