From ac3ffb9e5872b772eb6dc708080352960a14adeb Mon Sep 17 00:00:00 2001 From: Kalle Carlbark Date: Thu, 31 Aug 2023 22:40:56 +0200 Subject: [PATCH] fix: Write to stdout instead of stderr --- build.zig | 2 +- build.zig.zon | 2 +- src/main.zig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.zig b/build.zig index 4e620df..05084f0 100644 --- a/build.zig +++ b/build.zig @@ -19,7 +19,7 @@ pub fn build(b: *std.Build) void { const clap = clap_dep.module("clap"); var opt = b.addOptions(); - opt.addOption([]const u8, "version", "0.0.1"); + opt.addOption([]const u8, "version", "0.0.2"); const exe = b.addExecutable(.{ .name = "b64", // In this case the main source file is merely a path, however, in more diff --git a/build.zig.zon b/build.zig.zon index d2ffede..9464f9e 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,6 +1,6 @@ .{ .name = "b64", - .version = "0.0.1", + .version = "0.0.2", .dependencies = .{ .clap = .{ .url = "https://github.com/Hejsil/zig-clap/archive/refs/tags/0.7.0.tar.gz", diff --git a/src/main.zig b/src/main.zig index b41cb52..937d8c9 100644 --- a/src/main.zig +++ b/src/main.zig @@ -96,7 +96,7 @@ pub fn main() !void { defer allocator.free(decodedString); - std.debug.print("{s}", .{decodedString}); + try stdout.writer().print("{s}", .{decodedString}); return; }