Skip to content

Commit

Permalink
Change var to anytype
Browse files Browse the repository at this point in the history
  • Loading branch information
mirrexagon committed Mar 26, 2021
1 parent 94d6ea6 commit edae2fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit edae2fa

Please sign in to comment.