mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-01 20:28:15 +00:00
fix demo out of bounds error
This commit is contained in:
@@ -48,7 +48,7 @@ the_basics :: proc() {
|
|||||||
// os.args holds the path to the current executable and any arguments passed to it.
|
// os.args holds the path to the current executable and any arguments passed to it.
|
||||||
if len(os.args) == 1 {
|
if len(os.args) == 1 {
|
||||||
fmt.printf("Hellope from %v.\n", os.args[0])
|
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])
|
fmt.printf("%v, %v! from %v.\n", os.args[1], os.args[2], os.args[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user