Commit 35403e4c authored by Robert Griesemer's avatar Robert Griesemer

added some missing periods

R=rsc
CC=golang-dev
https://golang.org/cl/181171
parent 676f9dfa
...@@ -130,7 +130,7 @@ func IsSpace(rune int) bool { ...@@ -130,7 +130,7 @@ func IsSpace(rune int) bool {
return Is(White_Space, rune) return Is(White_Space, rune)
} }
// To maps the rune to the specified case: UpperCase, LowerCase, or TitleCase // To maps the rune to the specified case: UpperCase, LowerCase, or TitleCase.
func To(_case int, rune int) int { func To(_case int, rune int) int {
if _case < 0 || MaxCase <= _case { if _case < 0 || MaxCase <= _case {
return ReplacementChar // as reasonable an error as any return ReplacementChar // as reasonable an error as any
...@@ -167,7 +167,7 @@ func To(_case int, rune int) int { ...@@ -167,7 +167,7 @@ func To(_case int, rune int) int {
return rune return rune
} }
// ToUpper maps the rune to upper case // ToUpper maps the rune to upper case.
func ToUpper(rune int) int { func ToUpper(rune int) int {
if rune < 0x80 { // quick ASCII check if rune < 0x80 { // quick ASCII check
if 'a' <= rune && rune <= 'z' { if 'a' <= rune && rune <= 'z' {
...@@ -178,7 +178,7 @@ func ToUpper(rune int) int { ...@@ -178,7 +178,7 @@ func ToUpper(rune int) int {
return To(UpperCase, rune) return To(UpperCase, rune)
} }
// ToLower maps the rune to lower case // ToLower maps the rune to lower case.
func ToLower(rune int) int { func ToLower(rune int) int {
if rune < 0x80 { // quick ASCII check if rune < 0x80 { // quick ASCII check
if 'A' <= rune && rune <= 'Z' { if 'A' <= rune && rune <= 'Z' {
...@@ -189,7 +189,7 @@ func ToLower(rune int) int { ...@@ -189,7 +189,7 @@ func ToLower(rune int) int {
return To(LowerCase, rune) return To(LowerCase, rune)
} }
// ToTitle maps the rune to title case // ToTitle maps the rune to title case.
func ToTitle(rune int) int { func ToTitle(rune int) int {
if rune < 0x80 { // quick ASCII check if rune < 0x80 { // quick ASCII check
if 'a' <= rune && rune <= 'z' { // title case is upper case for ASCII if 'a' <= rune && rune <= 'z' { // title case is upper case for ASCII
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment