summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/test.nya10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/test.nya b/examples/test.nya
index 3088546..0b8c59b 100644
--- a/examples/test.nya
+++ b/examples/test.nya
@@ -1,6 +1,6 @@
-fn main() -> i32 {
- const testval = 6;
- var testvar = testval;
- testvar = 5;
- return testvar;
+import fn puts(str: [u8]) -> i32;
+
+fn main(argc: i32) -> i32 {
+ puts("Hello World!");
+ return 0;
}