v2 / vlib / v / checker / tests / for_in_mut_string.out
14 lines · 14 sloc · 493 bytes · e2e5cf8db56f3562c7baa735061690be936bdf3e
Raw
1vlib/v/checker/tests/for_in_mut_string.vv:19:6: error: string type is immutable, it cannot be changed
2 17 |
3 18 | fn wrap_text(mut gv Grid) {
4 19 | for mut ch in gv.header {
5 | ~~~
6 20 | println(ch)
7 21 | }
8vlib/v/checker/tests/for_in_mut_string.vv:23:6: error: string type is immutable, it cannot be changed
9 21 | }
10 22 |
11 23 | for mut letter in 'abc' {
12 | ~~~
13 24 | bit := letter - 1
14 25 | println(bit)
15