diff options
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/code/demo.odin b/code/demo.odin index 786392b77..e3e68596c 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -1,16 +1,6 @@ #import "fmt.odin" - main :: proc() { - maybe_print :: proc(x: ?int) { - if v, ok := x?; ok { - fmt.println(v) - } else { - fmt.println("nowt") - } - } - - maybe_print(123) // 123 - maybe_print(nil) // nowt + x := ?123 } |