From 3ca7c8897c8577fdd4d3db992a1291a8314170f6 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sat, 27 Aug 2022 01:08:16 +0800 Subject: [PATCH] feat: update tests --- README.md | 5 +++++ helloworld.zig | 2 ++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 12ef243..5647e09 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,11 @@ Zig is a general-purpose programming language and toolchain for maintaining robu

+Run: +``` +% zig run hello.zig +``` + Build: ``` diff --git a/helloworld.zig b/helloworld.zig index 5dbdfd2..3f94835 100644 --- a/helloworld.zig +++ b/helloworld.zig @@ -1,6 +1,8 @@ const std = @import("std"); +const print = @import("std").debug.print; pub fn main() void { std.debug.print("Hello, world!\n", .{}); + print("Hello, world!\n", .{}); }