Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2020-05-22 15:30:01 +08:00
parent 1360686907
commit 1637507361
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ func titleCasedName(name string) string {
case upNextChar: case upNextChar:
upNextChar = false upNextChar = false
if 'a' <= c && c <= 'z' { if 'a' <= c && c <= 'z' {
c += 'a' - 'A' c -= 'a' - 'A'
} }
case c == '_': case c == '_':
upNextChar = true upNextChar = true