🔧 Update .gitignore and refactor print logic in hello.zig

This commit is contained in:
2026-04-10 00:36:28 +08:00
parent 0f61f6bd3d
commit 54fd3760c4
2 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
.zig-cache/
# ---> macOS # ---> macOS
# General # General
.DS_Store .DS_Store

View File

@@ -1,7 +1,6 @@
const std = @import("std"); const std = @import("std");
pub fn main() !void { pub fn main() !void {
const stdout = std.io.getStdOut().writer(); std.debug.print("Hello, {s}!\n", .{"world"});
try stdout.print("Hello, {s}!\n", .{"world"});
} }