diff options
-rw-r--r-- | samples/helloworld.golem | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/samples/helloworld.golem b/samples/helloworld.golem index 6609a51..5dbc6b5 100644 --- a/samples/helloworld.golem +++ b/samples/helloworld.golem @@ -16,7 +16,6 @@ main() { strappend('l'); strappend('d'); strappend('!'); - strappend('\n'); i = 0; loop { @@ -24,6 +23,7 @@ main() { if (i > 9) break; print(str); + nl(); } } @@ -32,11 +32,13 @@ strappend(c) { str_i = str_i + 1; } -print(s) { +print(s) loop { if ([s] == 0) - break; + return 0; wrt [s]; s = s + 1; } -} + +nl() + wrt '\n'; |