Skip to content

Commit

Permalink
Rename print buf
Browse files Browse the repository at this point in the history
  • Loading branch information
Emin017 committed May 11, 2024
1 parent a385cdc commit d991f41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/debug.zig
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
const std = @import("std");
const print = std.debug.print;

var printf_buf: [1024]u8 = undefined;
var pbuf: [1024]u8 = undefined;
pub fn printf(comptime format: []const u8, args: anytype) void {
const slice = std.fmt.bufPrint(printf_buf[0..], format, args) catch @panic("bufPrint failure");
const slice = std.fmt.bufPrint(pbuf[0..], format, args) catch @panic("bufPrint failure");
print(slice);
}

0 comments on commit d991f41

Please sign in to comment.