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;
|
return a + b;
|
||||||
}
|
}
|
||||||
|
|
||||||
// type is void by default
|
fn main() i32 {
|
||||||
//fn main() {
|
return 0;
|
||||||
// print("piss\n");
|
}
|
||||||
// // print("2 + 2 = %d\n", add(1, 2));
|
|
||||||
//}
|
|
||||||
|
|
Loading…
Reference in a new issue