diff options
| author | Laytan <laytanlaats@hotmail.com> | 2024-03-21 22:22:23 +0100 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-05-07 16:52:46 +0200 |
| commit | 043dd98e91f40ef8a3980667d83dd69db8f7b8de (patch) | |
| tree | 60efa1f02137a4a8ff7ca4dbedc28ff2e5897dde | |
| parent | b91e7f5c51d26b5a8e985e8fe22758442b8f5ae0 (diff) | |
fix demo out of bounds error
| -rw-r--r-- | examples/demo/demo.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin index a62c11310..39345e39c 100644 --- a/examples/demo/demo.odin +++ b/examples/demo/demo.odin @@ -48,7 +48,7 @@ the_basics :: proc() { // os.args holds the path to the current executable and any arguments passed to it. if len(os.args) == 1 { fmt.printf("Hellope from %v.\n", os.args[0]) - } else { + } else if len(os.args) > 2 { fmt.printf("%v, %v! from %v.\n", os.args[1], os.args[2], os.args[0]) } |