diff options
| author | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-25 15:12:12 +0000 |
|---|---|---|
| committer | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-25 15:12:12 +0000 |
| commit | 7d1944ab9d2307f2736afe8520436872db1c7617 (patch) | |
| tree | 7380a4f148f9ce0b70ed9f02cfa5e8561c783a7a /tests/features/test_iterator_drop.zc | |
| parent | 8b720543f538862796fec0ff6b7ea12cb140bf0f (diff) | |
'let' it be
Diffstat (limited to 'tests/features/test_iterator_drop.zc')
| -rw-r--r-- | tests/features/test_iterator_drop.zc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/features/test_iterator_drop.zc b/tests/features/test_iterator_drop.zc index 43e22a7..bc513df 100644 --- a/tests/features/test_iterator_drop.zc +++ b/tests/features/test_iterator_drop.zc @@ -1,7 +1,7 @@ import "../../std/iter.zc" import "../../std/mem.zc" -var DROP_CALLED = 0; +let DROP_CALLED = 0; struct DropIter { count: int; @@ -36,10 +36,10 @@ impl DropRange { test "iterator_drop" { { - var range = DropRange { len: 3 }; + let range = DropRange { len: 3 }; for i in range { // Loop runs 3 times - var _ignore = i; + let _ignore = i; } // Iterator should be dropped here } |
