Commit 39112d9052

Andrew Kelley <andrew@ziglang.org>
2019-06-27 20:06:29
update format function for new std fmt changes
1 parent ba29435
Changed files (1)
std
std/http/headers.zig
@@ -357,7 +357,14 @@ pub const Headers = struct {
         self.rebuild_index();
     }
 
-    pub fn format(self: Self, comptime fmt: []const u8, context: var, comptime Errors: type, output: fn (@typeOf(context), []const u8) Errors!void) Errors!void {
+    pub fn format(
+        self: Self,
+        comptime fmt: []const u8,
+        options: std.fmt.FormatOptions,
+        context: var,
+        comptime Errors: type,
+        output: fn (@typeOf(context), []const u8) Errors!void,
+    ) Errors!void {
         var it = self.iterator();
         while (it.next()) |entry| {
             try output(context, entry.name);