fix mut_test.v
parent
4d44de7685
commit
3c6a11eb0b
|
@ -6,7 +6,7 @@ fn foo(b int, a mut []int) {
|
||||||
// TODO
|
// TODO
|
||||||
fn test_mut() {
|
fn test_mut() {
|
||||||
mut numbers := [1,2,3]
|
mut numbers := [1,2,3]
|
||||||
foo(7, numbers)
|
foo(7, mut numbers)
|
||||||
//assert a.len == 4
|
//assert a.len == 4
|
||||||
assert numbers[0] == 7
|
assert numbers[0] == 7
|
||||||
//assert a[3] == 4
|
//assert a[3] == 4
|
||||||
|
|
Loading…
Reference in New Issue