parser: fix small typo

pull/1141/head
hazohelet 2019-07-14 23:30:04 +09:00 committed by Alexander Medvednikov
parent 6995cc0234
commit 441281dd4f
1 changed files with 2 additions and 2 deletions

View File

@ -668,7 +668,7 @@ fn (p &Parser) strtok() string {
return res
}
// same as check(), but addes a space to the formatter output
// same as check(), but adds a space to the formatter output
// TODO bad name
fn (p mut Parser) check_space(expected Token) {
p.fspace()
@ -1827,7 +1827,7 @@ fn (p mut Parser) index_expr(typ string, fn_ph int) string {
// returns resulting type
fn (p mut Parser) expression() string {
if p.scanner.file_path.contains('test_test') {
println('epxression() pass=$p.run tok=')
println('expression() pass=$p.run tok=')
p.print_tok()
}
p.cgen('/* expr start*/')