From d504cef8ffa26e5ae5606ed797c47610bba057a0 Mon Sep 17 00:00:00 2001 From: jaina heartles Date: Mon, 12 Dec 2022 03:40:51 -0800 Subject: [PATCH] Fix template formatting --- src/template/lib.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/template/lib.zig b/src/template/lib.zig index 100e95b..4a82a1b 100644 --- a/src/template/lib.zig +++ b/src/template/lib.zig @@ -206,7 +206,7 @@ fn print(writer: anytype, arg: anytype) !void { if (T == void) return; if (comptime std.meta.trait.isZigString(T)) return htmlEscape(writer, arg); if (comptime std.meta.trait.isNumber(T)) return std.fmt.format(writer, "{}", .{arg}); - std.fmt.format(writer, "{}", .{arg}); + try std.fmt.format(writer, "{}", .{arg}); } fn Deref(comptime T: type, comptime names: []const []const u8) type {