1
0
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:
drswinghead 2019-06-26 19:54:03 +08:00 committed by Alex Medvednikov
parent 88f67680fc
commit 4812f92845

View File

@ -60,8 +60,7 @@ fn is_white(c byte) bool {
}
fn is_nl(c byte) bool {
i := int(c)
return i == 12 || i == 10
return c == `\r` || c == `\n`
}
fn (s mut Scanner) ident_name() string {