From e73b56aa4bcb7e53144ef96ee978f2a19b32669d Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Tue, 22 Oct 2024 17:46:47 +0200 Subject: refactor: Always access using full namespace This is my new preferred style of programming Zig :) --- example/help.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'example/help.zig') diff --git a/example/help.zig b/example/help.zig index 2f063c5..b80ee35 100644 --- a/example/help.zig +++ b/example/help.zig @@ -1,6 +1,3 @@ -const clap = @import("clap"); -const std = @import("std"); - pub fn main() !void { var gpa = std.heap.GeneralPurposeAllocator(.{}){}; defer _ = gpa.deinit(); @@ -17,9 +14,12 @@ pub fn main() !void { defer res.deinit(); // `clap.help` is a function that can print a simple help message. It can print any `Param` - // where `Id` has a `describtion` and `value` method (`Param(Help)` is one such parameter). + // where `Id` has a `description` and `value` method (`Param(Help)` is one such parameter). // The last argument contains options as to how `help` should print those parameters. Using // `.{}` means the default options. if (res.args.help != 0) return clap.help(std.io.getStdErr().writer(), clap.Help, ¶ms, .{}); } + +const clap = @import("clap"); +const std = @import("std"); -- cgit v1.2.3