From abb15275f56e8af8068d34e3a0a22c7e7cbed076 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 21 May 2020 06:06:11 +0200 Subject: [PATCH] checker: update a `for in` error test --- vlib/v/checker/tests/for_in_map_one_variable_err.out | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vlib/v/checker/tests/for_in_map_one_variable_err.out b/vlib/v/checker/tests/for_in_map_one_variable_err.out index ef96d8da3a..ae4281b8cf 100644 --- a/vlib/v/checker/tests/for_in_map_one_variable_err.out +++ b/vlib/v/checker/tests/for_in_map_one_variable_err.out @@ -1,4 +1,5 @@ -vlib/v/checker/tests/for_in_map_one_variable_err.v:3:6: error: for in: cannot use one variable in map +vlib/v/checker/tests/for_in_map_one_variable_err.v:3:6: error: declare a key and a value variable when ranging a map: `for key, val in map {` +use `_` if you do not need the variable 1 | fn main() { 2 | kvs := {'foo':'bar'} 3 | for k in kvs {