update std lib to use error type and global variables

This commit is contained in:
Andrew Kelley
2016-01-24 22:53:00 -07:00
parent 29a83f648b
commit bcb18338cd
10 changed files with 295 additions and 302 deletions

View File

@@ -3,7 +3,7 @@ import "std.zig";
// purposefully conflicting function with main.zig
// but it's private so it should be OK
fn private_function() => {
print_str("OK 1\n");
stdout.printf("OK 1\n");
}
pub fn print_text() => {