From 54fd3760c4b839fba4cc3098f20883bf18a543d1 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Fri, 10 Apr 2026 00:36:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Update=20.gitignore=20and=20refa?= =?UTF-8?q?ctor=20print=20logic=20in=20hello.zig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + hello.zig | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a4fa9c9..383e8e9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.zig-cache/ # ---> macOS # General .DS_Store diff --git a/hello.zig b/hello.zig index c303e5c..c4fd694 100644 --- a/hello.zig +++ b/hello.zig @@ -1,7 +1,6 @@ const std = @import("std"); pub fn main() !void { - const stdout = std.io.getStdOut().writer(); - try stdout.print("Hello, {s}!\n", .{"world"}); + std.debug.print("Hello, {s}!\n", .{"world"}); }