summaryrefslogtreecommitdiff
path: root/example/streaming-clap.zig
diff options
context:
space:
mode:
Diffstat (limited to 'example/streaming-clap.zig')
-rw-r--r--example/streaming-clap.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/streaming-clap.zig b/example/streaming-clap.zig
index 941070f..5468fd5 100644
--- a/example/streaming-clap.zig
+++ b/example/streaming-clap.zig
@@ -42,7 +42,7 @@ pub fn main() !void {
42 // Because we use a streaming parser, we have to consume each argument parsed individually. 42 // Because we use a streaming parser, we have to consume each argument parsed individually.
43 while (parser.next(&diag) catch |err| { 43 while (parser.next(&diag) catch |err| {
44 // Report useful error and exit 44 // Report useful error and exit
45 diag.report(std.io.getStdErr().outStream(), err) catch {}; 45 diag.report(std.io.getStdErr().writer(), err) catch {};
46 return err; 46 return err;
47 }) |arg| { 47 }) |arg| {
48 // arg.param will point to the parameter which matched the argument. 48 // arg.param will point to the parameter which matched the argument.