mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
avoid literal number #651
This commit is contained in:
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
Block a user