From f00741deca9e62d5c3db0708758b381a0e9d3ad9 Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 29 Sep 2019 12:03:17 -0300 Subject: [PATCH] add main() to example --- examples/hello.ry | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/hello.ry b/examples/hello.ry index 3b05145..fbec8fa 100644 --- a/examples/hello.ry +++ b/examples/hello.ry @@ -29,8 +29,6 @@ fn add(a: i32, b: i32) i32 { return a + b; } -// type is void by default -//fn main() { -// print("piss\n"); -// // print("2 + 2 = %d\n", add(1, 2)); -//} +fn main() i32 { + return 0; +}