From a680db44ed4f4d17606b94ce4630d59b30afd9ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=C3=A4schle?= Date: Thu, 16 Apr 2020 06:01:14 +0200 Subject: [PATCH] parser: change `for` error message --- vlib/v/parser/parser.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/parser/parser.v b/vlib/v/parser/parser.v index d804bfb2f4..9a94ef9b9b 100644 --- a/vlib/v/parser/parser.v +++ b/vlib/v/parser/parser.v @@ -1089,7 +1089,7 @@ fn (p mut Parser) for_stmt() ast.Stmt { is_inf: true } } else if p.tok.kind in [.key_mut, .key_var] { - p.error('`mut` is not required in for loops') + p.error('`mut` is not needed in for loops') } else if p.peek_tok.kind in [.decl_assign, .assign, .semicolon] || p.tok.kind == .semicolon { // `for i := 0; i < 10; i++ {` var init := ast.Stmt{}