diff options
| author | gingerBill <bill@gingerbill.org> | 2023-08-08 14:57:25 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-08-08 14:57:25 +0100 |
| commit | cd74cdfdaf5157704b836c8de1c32b5a03dddcae (patch) | |
| tree | 39d88a4b0ce0237d303fb1153dfe3c970e819a52 /examples | |
| parent | 49ab935ae9268264fe40177690292ea890f6a7e3 (diff) | |
Remove `switch in` in favour of `switch _ in`
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/demo/demo.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin index e9e0a8d63..94aafe8b2 100644 --- a/examples/demo/demo.odin +++ b/examples/demo/demo.odin @@ -1354,13 +1354,13 @@ partial_switch :: proc() { { // union Foo :: union {int, bool} f: Foo = 123 - switch in f { + switch _ in f { case int: fmt.println("int") case bool: fmt.println("bool") case: } - #partial switch in f { + #partial switch _ in f { case bool: fmt.println("bool") } } |