aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-01-03 19:11:12 +0000
committerGinger Bill <bill@gingerbill.org>2017-01-03 19:11:12 +0000
commit70d4ca00df4cbc750ec66dd17c7e776805164ec1 (patch)
treee5093fb0192155fda13908e910c87c28bd67e816 /code
parenta86896e4d30b118287cf2111cd2fbec00ed2be70 (diff)
`while`; `range` is now `for`; remove ++ and --
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);
}
}