avoid literal number #651
parent
88f67680fc
commit
4812f92845
|
@ -60,8 +60,7 @@ fn is_white(c byte) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_nl(c byte) bool {
|
fn is_nl(c byte) bool {
|
||||||
i := int(c)
|
return c == `\r` || c == `\n`
|
||||||
return i == 12 || i == 10
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn (s mut Scanner) ident_name() string {
|
fn (s mut Scanner) ident_name() string {
|
||||||
|
|
Loading…
Reference in New Issue