fix hello world example

This commit is contained in:
Andrew Kelley 2015-12-06 22:01:05 -07:00
parent c6fff3b2c0
commit 5fd754c84a

View file

@ -6,18 +6,7 @@ extern {
fn exit(code: i32) -> unreachable;
}
fn loop(a : i32) {
if a == 0 {
goto done;
}
puts("loop");
loop(a - 1);
done:
return;
}
export fn _start() -> unreachable {
loop(3);
puts("Hello, world!");
exit(0);
}