Merge pull request #140 from JosephSalisbury/fix-neuter-accents-godoc

Improves NeuterAccents godoc
This commit is contained in:
Martin Bertschler 2017-10-21 13:08:13 +02:00 committed by GitHub
commit 5660eeed30
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))