fix zig syntax

This commit is contained in:
Pierre Tachoire
2026-04-14 15:56:16 -04:00
parent 35991a1b32
commit de3404dfc5

View File

@@ -91,7 +91,7 @@ pub fn saveToFile(jar: *Cookie.Jar, path: []const u8) !void {
for (jar.cookies.items, 0..) |c, i| {
if (i > 0) try w.writeAll(",");
try w.writeAll("\n ");
try std.json.stringify(JsonCookie{
try std.json.Stringify.value(JsonCookie{
.name = c.name,
.value = c.value,
.domain = c.domain,