From e53bb6a9d4646702741d763ef5e7a16179207c16 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 1 Jan 2020 13:12:38 +0100 Subject: [PATCH] parser: wrong `else` --- vlib/v/parser/parser.v | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vlib/v/parser/parser.v b/vlib/v/parser/parser.v index 1612a5de53..9a429c1419 100644 --- a/vlib/v/parser/parser.v +++ b/vlib/v/parser/parser.v @@ -282,9 +282,8 @@ pub fn (p mut Parser) call_expr() (ast.CallExpr,types.Type) { if p.tok.kind == .comma { p.error('too many arguments in call to `$fn_name`') } - else { - p.error('unknown function `$fn_name`') - } + }else{ + p.error('unknown function `$fn_name`') } p.check(.rpar) node := ast.CallExpr{