diff options
Diffstat (limited to 'libgo/go/unicode/digit.go')
-rw-r--r-- | libgo/go/unicode/digit.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libgo/go/unicode/digit.go b/libgo/go/unicode/digit.go index 6793fd7e5f8..4800bd6ea8e 100644 --- a/libgo/go/unicode/digit.go +++ b/libgo/go/unicode/digit.go @@ -5,9 +5,9 @@ package unicode // IsDigit reports whether the rune is a decimal digit. -func IsDigit(rune int) bool { - if rune <= MaxLatin1 { - return '0' <= rune && rune <= '9' +func IsDigit(r rune) bool { + if r <= MaxLatin1 { + return '0' <= r && r <= '9' } - return Is(Digit, rune) + return Is(Digit, r) } |