Browse Source

codecgen: go identifier contains unicode digits, not number.

Updates #126 #127
Ugorji Nwoke 10 years ago
parent
commit
74d8be59e0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      codec/gen.go

+ 1 - 1
codec/gen.go

@@ -1651,7 +1651,7 @@ func genGoIdentifier(s string, checkFirstChar bool) string {
 			b = append(b, '_')
 		}
 		// r must be unicode_letter, unicode_digit or _
-		if unicode.IsLetter(r) || unicode.IsNumber(r) {
+		if unicode.IsLetter(r) || unicode.IsDigit(r) {
 			n = utf8.EncodeRune(t, r)
 			b = append(b, t[:n]...)
 		} else {