aboutsummaryrefslogtreecommitdiff
path: root/src/strings
diff options
context:
space:
mode:
authorKevin Zita <bleedgreenandgold@gmail.com>2018-08-03 18:08:09 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2018-08-21 04:38:58 +0000
commit827248484004300c52162d55dfa05083862062ed (patch)
tree3df4a8deb05c2bf6c115ecc8db909bace6d63411 /src/strings
parent15c362a26081d99ee968f99fb3fc43b2e093a81d (diff)
downloadgo-827248484004300c52162d55dfa05083862062ed.tar.gz
go-827248484004300c52162d55dfa05083862062ed.zip
strings: revise ToUpperSpecial and ToLowerSpecial wording
Fixes #26654 Change-Id: I4832c45cad40607b83e1a8a9b562fa12e639b7d9 GitHub-Last-Rev: c9ceedb7d4b4c01f91ea4fe3dc3496e73eed9120 GitHub-Pull-Request: golang/go#26781 Reviewed-on: https://go-review.googlesource.com/127716 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/strings')
-rw-r--r--src/strings/strings.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strings/strings.go b/src/strings/strings.go
index 20868be269..9e7d4f0455 100644
--- a/src/strings/strings.go
+++ b/src/strings/strings.go
@@ -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)
}