1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

use ++ everywhere

This commit is contained in:
Alexander Medvednikov
2019-12-08 14:34:51 +03:00
parent cc682eafe1
commit c9886e6f42
8 changed files with 17 additions and 16 deletions

View File

@ -41,7 +41,8 @@ fn test_mut_2() {
b.a[zero].v << 5
b.a[0].v[zero] = 3
b.a[0].v[b.a[zero].v[zero]] += 1b.a[0].v[b.a[0].v[zero]] += 1
b.a[0].v[b.a[zero].v[zero]]++
b.a[0].v[b.a[0].v[zero]]++
assert b.a[0].v.len == 5
assert b.a[0].v[0] == 3