From 560c8dd72ab25d556123846254040c5bf9ad3ba4 Mon Sep 17 00:00:00 2001 From: JustAnotherCodemonkey Date: Mon, 25 Nov 2024 07:57:42 +0000 Subject: Patch up README and fix comments in example files. (#143) The readme was also reflowed to 100 cols. I probably should have put that in a separate commit but oh well. The comments were not subjected to reflowing (yet).--- example/simple.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/simple.zig') diff --git a/example/simple.zig b/example/simple.zig index 74157a6..2b7bf0a 100644 --- a/example/simple.zig +++ b/example/simple.zig @@ -3,7 +3,7 @@ pub fn main() !void { defer _ = gpa.deinit(); // First we specify what parameters our program can take. - // We can use `parseParamsComptime` to parse a string into an array of `Param(Help)` + // We can use `parseParamsComptime` to parse a string into an array of `Param(Help)`. const params = comptime clap.parseParamsComptime( \\-h, --help Display this help and exit. \\-n, --number An option parameter, which takes a value. @@ -20,7 +20,7 @@ pub fn main() !void { .diagnostic = &diag, .allocator = gpa.allocator(), }) catch |err| { - // Report useful error and exit + // Report useful error and exit. diag.report(std.io.getStdErr().writer(), err) catch {}; return err; }; -- cgit v1.2.3