Check "var z u64[:123]".

This commit is contained in:
Nigel Tao committed 2017-05-11 17:11:17 +10:00
1 parent c3d9ea2aa6
commit c1ce1b08de
5 files changed
+99 -38

No files matched your search

+2
View File
@@ -173,6 +173,8 @@ loop:
// TODO: 0x12 hex and 0b11 binary numbers.
//
// TODO: allow underscores like 0b1000_0000_1111?
//
// TODO: reject 0755 octal numbers.
j := i + 1
for ; j < len(src) && numeric(src[j]); j++ {
if j-i == maxTokenSize {