mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 06:38:47 +00:00
match to switch; Optional semicolons after "import" statements
This commit is contained in:
+1
-1
@@ -254,7 +254,7 @@ rune_count :: proc(s: []u8) -> int {
|
||||
|
||||
|
||||
rune_size :: proc(r: rune) -> int {
|
||||
match {
|
||||
switch {
|
||||
case r < 0: return -1;
|
||||
case r <= 1<<7 - 1: return 1;
|
||||
case r <= 1<<11 - 1: return 2;
|
||||
|
||||
Reference in New Issue
Block a user