From ba2530c3a743b00db37b2269b7c1f952e7cc6b35 Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Mon, 2 Nov 2020 20:16:43 +0100 Subject: Replace `var` with `anytype` --- clap.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clap.zig') diff --git a/clap.zig b/clap.zig index f883858..b7235f1 100644 --- a/clap.zig +++ b/clap.zig @@ -293,7 +293,7 @@ pub const Diagnostic = struct { /// Default diagnostics reporter when all you want is English with no colors. /// Use this as a reference for implementing your own if needed. - pub fn report(diag: Diagnostic, stream: var, err: anyerror) !void { + pub fn report(diag: Diagnostic, stream: anytype, err: anyerror) !void { const prefix = if (diag.name.short) |_| "-" else "--"; const name = if (diag.name.short) |*c| @as(*const [1]u8, c)[0..] else diag.name.long.?; -- cgit v1.2.3