diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-12-30 22:52:43 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-12-30 22:52:43 +0000 |
| commit | 0c6775ca14ced37ac58a03ccad4028e225bda7d6 (patch) | |
| tree | 1d53d0bc67fb5287d609bba3c2e0933c70a9f0d6 /code | |
| parent | 6748f305db791e0b3db3fe567ea44ba96935c7d9 (diff) | |
Fix give expressions
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/code/demo.odin b/code/demo.odin index e79e29a3c..422b68c77 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -12,11 +12,10 @@ import { } proc main() { - var cond = true; - var msg = if cond { - give "hello"; + var x = if false { + give 123; } else { - give "goodbye"; + give 321; }; - fmt.println(msg); + fmt.println(x); } |