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

fix examples

This commit is contained in:
Alexander Medvednikov
2019-08-07 14:16:10 +02:00
parent b5d67f226f
commit 4b69d43f9f
5 changed files with 9 additions and 5 deletions

View File

@ -3,12 +3,13 @@ fn foo(a mut []int) {
a << 4
}
// TODO
fn test_mut() {
mut a := [1,2,3]
foo(mut a)
//assert a.len == 4
assert a[0] == 7
assert a[3] == 4
//assert a[3] == 4
n := 1
mut b := &n