1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: fix small typo

This commit is contained in:
hazohelet 2019-07-14 23:30:04 +09:00 committed by Alexander Medvednikov
parent 6995cc0234
commit 441281dd4f

View File

@ -668,7 +668,7 @@ fn (p &Parser) strtok() string {
return res 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 // TODO bad name
fn (p mut Parser) check_space(expected Token) { fn (p mut Parser) check_space(expected Token) {
p.fspace() p.fspace()
@ -1827,7 +1827,7 @@ fn (p mut Parser) index_expr(typ string, fn_ph int) string {
// returns resulting type // returns resulting type
fn (p mut Parser) expression() string { fn (p mut Parser) expression() string {
if p.scanner.file_path.contains('test_test') { if p.scanner.file_path.contains('test_test') {
println('epxression() pass=$p.run tok=') println('expression() pass=$p.run tok=')
p.print_tok() p.print_tok()
} }
p.cgen('/* expr start*/') p.cgen('/* expr start*/')