diff options
| author | suresh <sureshkrishnan.ai@gmail.com> | 2026-01-25 11:43:23 -0500 |
|---|---|---|
| committer | suresh <sureshkrishnan.ai@gmail.com> | 2026-01-25 11:43:23 -0500 |
| commit | 26a0b55ed5bce4ad0ba2af109cfc96da7be2e34c (patch) | |
| tree | 35ba8d7742b8ac727bfc6c4c73ab8b70f6eedb53 /tests/features/test_iterator.zc | |
| parent | 0bb69cb67078dfa921b5b8a42275ef31dfbc9a56 (diff) | |
| parent | 489336b2101bf16edeec7bfc4379408eb19b936e (diff) | |
Merge branch 'main' into JsonType
# Conflicts:
# examples/data/json_config.zc
Diffstat (limited to 'tests/features/test_iterator.zc')
| -rw-r--r-- | tests/features/test_iterator.zc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/features/test_iterator.zc b/tests/features/test_iterator.zc index 1340a00..6efd413 100644 --- a/tests/features/test_iterator.zc +++ b/tests/features/test_iterator.zc @@ -9,7 +9,7 @@ struct RangeIter { impl RangeIter { fn next(self) -> Option<int> { if (self.current < self.stop) { - var v = self.current; + let v = self.current; self.current += 1; return Option<int>::Some(v); } @@ -32,8 +32,8 @@ impl MyRange { } test "iterator_desugaring" { - var range = MyRange { start: 0, end: 5 }; - var sum = 0; + let range = MyRange { start: 0, end: 5 }; + let sum = 0; // This loop should be desugared by the compiler for i in range { |
