strings: Revised ToUpperSpecial and ToLowerSpecial wording for doc

This commit is contained in:
Kevin Zita 2018-08-02 23:17:50 -04:00
parent 0cab8bfddd
commit c9ceedb7d4
1 changed files with 2 additions and 2 deletions

View File

@ -616,13 +616,13 @@ func ToLower(s string) string {
func ToTitle(s string) string { return Map(unicode.ToTitle, s) }
// ToUpperSpecial returns a copy of the string s with all Unicode letters mapped to their
// upper case, giving priority to the special casing rules.
// upper case using the case mapping specified by c.
func ToUpperSpecial(c unicode.SpecialCase, s string) string {
return Map(func(r rune) rune { return c.ToUpper(r) }, s)
}
// ToLowerSpecial returns a copy of the string s with all Unicode letters mapped to their
// lower case, giving priority to the special casing rules.
// lower case using the case mapping specified by c.
func ToLowerSpecial(c unicode.SpecialCase, s string) string {
return Map(func(r rune) rune { return c.ToLower(r) }, s)
}