add main() to example
This commit is contained in:
parent
f84eb16490
commit
f00741deca
1 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue