From 6a834c05285ff4afef160a3cc3cfed82245ced49 Mon Sep 17 00:00:00 2001 From: Larpon Date: Sat, 25 Apr 2020 16:51:12 +0200 Subject: [PATCH] checker: use 'mut' instead of 'var' in error message --- vlib/v/checker/checker.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index f1239c9f39..5501a3a9f1 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -402,7 +402,7 @@ fn (c mut Checker) assign_expr(assign_expr mut ast.AssignExpr) { scope := c.file.scope.innermost(assign_expr.pos.pos) if v := scope.find_var(it.name) { if !v.is_mut { - c.error('`$it.name` is immutable, declare it with `var` to assign to it', assign_expr.pos) + c.error('`$it.name` is immutable, declare it with `mut` to assign to it', assign_expr.pos) } } }