zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 5fd754c84a6018f19b595154752c61c1cff3f757 (tree)
parent c6fff3b2c0796180b2232248d8b19f9e29b94011
Author: Andrew Kelley <superjoe30@gmail.com>
Date:   Sun,  6 Dec 2015 22:01:05 -0700

fix hello world example

Diffstat:
Mexample/hello_world/hello.zig | 13+------------
1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/example/hello_world/hello.zig b/example/hello_world/hello.zig @@ -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); }