summaryrefslogtreecommitdiff
path: root/tests/features/test_iterator.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/features/test_iterator.zc')
-rw-r--r--tests/features/test_iterator.zc6
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 {