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

parser: fix a wrong index in an error

This commit is contained in:
Alexander Medvednikov 2019-12-04 13:36:26 +03:00
parent 9a6711fa1b
commit d9248e8d52

View File

@ -1144,7 +1144,7 @@ fn (p mut Parser) fn_call_args(f mut Fn) {
if f.is_method { if f.is_method {
j-- j--
} }
mut nr := '${i+1}th' mut nr := '${j+1}th'
if j == 0 { if j == 0 {
nr = 'first' nr = 'first'
} else if j == 1 { } else if j == 1 {