aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
Diffstat (limited to 'code')
-rw-r--r--code/demo.odin8
1 files changed, 4 insertions, 4 deletions
diff --git a/code/demo.odin b/code/demo.odin
index 05307c40f..a7bf7aa88 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -21,13 +21,13 @@ main :: proc() {
msg := "Hellope";
list := []int{1, 4, 7, 3, 7, 2, 1};
- range value : msg {
+ for value : msg {
fmt.println(value);
}
- range value : list {
+ for value : list {
fmt.println(value);
}
- range x : 0 ..< 5 {
- fmt.println(x);
+ for val, idx : 12 ..< 17 {
+ fmt.println(val, idx);
}
}