diff options
Diffstat (limited to 'src/pkg/unicode/digit.go')
| -rw-r--r-- | src/pkg/unicode/digit.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/unicode/digit.go b/src/pkg/unicode/digit.go index 6793fd7e5..4800bd6ea 100644 --- a/src/pkg/unicode/digit.go +++ b/src/pkg/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) } |
