From edae2fa0e9758b01c24dc3ed9ef0f1b8e4a653f5 Mon Sep 17 00:00:00 2001 From: Andrew Abbott Date: Fri, 26 Mar 2021 20:19:20 +1100 Subject: [PATCH] Change `var` to `anytype` https://github.com/ziglang/zig/pull/5846 --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index 3e3cb74..07698e7 100644 --- a/src/main.zig +++ b/src/main.zig @@ -12,7 +12,7 @@ fn puts(msg: []const u8) void { } } -fn printf(buf: []u8, comptime format: []const u8, args: var) void { +fn printf(buf: []u8, comptime format: []const u8, args: anytype) void { puts(fmt.bufPrint(buf, format, args) catch unreachable); }