aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-03-19 17:36:08 +0000
committerGinger Bill <bill@gingerbill.org>2017-03-19 17:36:08 +0000
commitc34d839f9ffd110762270f071d7abbefaa41bc20 (patch)
treed9131a543c3095cd3dc9240a46d71a8ee8b85230 /code
parent5562364a98f01a0c0221a70345656d45de0d2009 (diff)
Add named branches for match statements
Diffstat (limited to 'code')
-rw-r--r--code/demo.odin3
1 files changed, 1 insertions, 2 deletions
diff --git a/code/demo.odin b/code/demo.odin
index cb17672cc..70f50c388 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -66,7 +66,6 @@ main :: proc() {
}
}
}
- return;
}
{
@@ -82,7 +81,7 @@ main :: proc() {
// Ternary operator
y := cond ? 3 : 4;
- FOO :: true ? 123 : 432; // Constant ternary operation
+ FOO :: true ? 123 : 432; // Constant ternary expression
fmt.println("Ternary values:", y, FOO);
}