diff options
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/code/demo.odin b/code/demo.odin index 455dadb46..49936f79b 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -2,16 +2,12 @@ #import "utf8.odin" main :: proc() { - + MAX :: 64 buf: [MAX]rune backing: [MAX]byte offset: int - when MAX > 0 { - msg := "Hello" - } - - MAX :: 64 + msg := "Hello" count := utf8.rune_count(msg) assert(count <= MAX) |