diff --git a/vlib/v/tests/assign_literal_with_closure_test.v b/vlib/v/tests/assign_literal_with_closure_test.v index 1fc5f209b5..597b48226e 100644 --- a/vlib/v/tests/assign_literal_with_closure_test.v +++ b/vlib/v/tests/assign_literal_with_closure_test.v @@ -10,7 +10,8 @@ fn sma(period int) fn (f64) f64 { } sum += input - storage[i] - storage[i], i = input, (i + 1) % period + storage[i] = input + i = (i + 1) % period return sum / f64(storage.len) } }