From 062303e29f0bc49e8710cbaf194e5298e20e6c47 Mon Sep 17 00:00:00 2001 From: Bob Farrell Date: Sun, 3 Mar 2024 15:02:17 +0000 Subject: [PATCH] Fix optional usage in README example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cd7e2cf..7c3424a 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ const options = argsParser.parseForCurrentProcess(struct { }, argsAllocator, .print) catch return 1; defer options.deinit(); -std.debug.print("executable name: {s}\n", .{options.executable_name}); +std.debug.print("executable name: {?s}\n", .{options.executable_name}); std.debug.print("parsed options:\n", .{}); inline for (std.meta.fields(@TypeOf(options.options))) |fld| {