summaryrefslogtreecommitdiff
path: root/tests/features/test_varargs.zc
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 15:12:12 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 15:12:12 +0000
commit7d1944ab9d2307f2736afe8520436872db1c7617 (patch)
tree7380a4f148f9ce0b70ed9f02cfa5e8561c783a7a /tests/features/test_varargs.zc
parent8b720543f538862796fec0ff6b7ea12cb140bf0f (diff)
'let' it be
Diffstat (limited to 'tests/features/test_varargs.zc')
-rw-r--r--tests/features/test_varargs.zc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/features/test_varargs.zc b/tests/features/test_varargs.zc
index b06f66e..376a825 100644
--- a/tests/features/test_varargs.zc
+++ b/tests/features/test_varargs.zc
@@ -9,11 +9,11 @@ test "Variadic Sum" {
}
fn sum_all(count: int, ...) -> int {
- var total = 0;
- var ap: va_list;
+ let total = 0;
+ let ap: va_list;
va_start(ap, count);
- for (var i = 0; i < count; i = i + 1) {
+ for (let i = 0; i < count; i = i + 1) {
total = total + va_arg(ap, int);
}