mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: update a for in error test
This commit is contained in:
@@ -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() {
|
1 | fn main() {
|
||||||
2 | kvs := {'foo':'bar'}
|
2 | kvs := {'foo':'bar'}
|
||||||
3 | for k in kvs {
|
3 | for k in kvs {
|
||||||
|
|||||||
Reference in New Issue
Block a user