summaryrefslogtreecommitdiff
path: root/src/pkg/go/scanner/scanner.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-08-26 16:53:07 -0700
committerRob Pike <r@golang.org>2009-08-26 16:53:07 -0700
commit71b2e367112fd4333577e29b96cc981e26890808 (patch)
tree3f79f279b03e6db136894a23d3939136b7d89d96 /src/pkg/go/scanner/scanner.go
parent152c80ae1bbae5a906bd67608e01025f8fb61662 (diff)
downloadgolang-71b2e367112fd4333577e29b96cc981e26890808.tar.gz
change IsDecimalDigit to IsDigit because Decimal is redundant
R=rsc DELTA=792 (398 added, 383 deleted, 11 changed) OCL=33919 CL=33921
Diffstat (limited to 'src/pkg/go/scanner/scanner.go')
-rw-r--r--src/pkg/go/scanner/scanner.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/go/scanner/scanner.go b/src/pkg/go/scanner/scanner.go
index 9a040aa6c..c4a5ad838 100644
--- a/src/pkg/go/scanner/scanner.go
+++ b/src/pkg/go/scanner/scanner.go
@@ -188,7 +188,7 @@ func isLetter(ch int) bool {
func isDigit(ch int) bool {
return
'0' <= ch && ch <= '9' ||
- ch >= 0x80 && unicode.IsDecimalDigit(ch);
+ ch >= 0x80 && unicode.IsDigit(ch);
}