From 2174a4a2e617e51fea42e114803538b9bedb9d35 Mon Sep 17 00:00:00 2001 From: dbandstra Date: Sun, 1 Dec 2019 23:10:25 -0800 Subject: update for latest zig --- example/help.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/help.zig') diff --git a/example/help.zig b/example/help.zig index de8a55a..1191482 100644 --- a/example/help.zig +++ b/example/help.zig @@ -2,7 +2,7 @@ const std = @import("std"); const clap = @import("clap"); pub fn main() !void { - const stderr_file = try std.io.getStdErr(); + const stderr_file = std.io.getStdErr(); var stderr_out_stream = stderr_file.outStream(); const stderr = &stderr_out_stream.stream; @@ -11,7 +11,7 @@ pub fn main() !void { // help message for any Param, but it is more verbose to call. try clap.help( stderr, - comptime [_]clap.Param(clap.Help){ + comptime &[_]clap.Param(clap.Help){ clap.parseParam("-h, --help Display this help and exit. ") catch unreachable, clap.parseParam("-v, --version Output version information and exit.") catch unreachable, }, -- cgit v1.2.3