avoid literal number #651

pull/1049/head
drswinghead 2019-06-26 19:54:03 +08:00 committed by Alex Medvednikov
parent 88f67680fc
commit 4812f92845
1 changed files with 1 additions and 2 deletions

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 {