aboutsummaryrefslogtreecommitdiff
path: root/example/hello_world/hello.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-01-24 22:53:00 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-01-24 22:53:00 -0700
commitbcb18338cd15dfd7a4e3e80e74d1fe395870fa48 (patch)
treed44e1166bc509300c1dc39817aa9b9362732945f /example/hello_world/hello.zig
parent29a83f648b8f0b6f757e07e3b1a6e15e8764b670 (diff)
downloadzig-bcb18338cd15dfd7a4e3e80e74d1fe395870fa48.tar.gz
zig-bcb18338cd15dfd7a4e3e80e74d1fe395870fa48.zip
update std lib to use error type and global variables
Diffstat (limited to 'example/hello_world/hello.zig')
-rw-r--r--example/hello_world/hello.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/example/hello_world/hello.zig b/example/hello_world/hello.zig
index c116eeea7b..42c72e6fb2 100644
--- a/example/hello_world/hello.zig
+++ b/example/hello_world/hello.zig
@@ -3,6 +3,5 @@ export executable "hello";
import "std.zig";
pub fn main(args: [][]u8) %void => {
- //stderr.print_str("Hello, world!\n");
- print_str("Hello, world!\n");
+ stdout.printf("Hello, world!\n");
}