| ... | @@ -5,7 +5,7 @@ const zfetch = @import("zfetch"); | ... | @@ -5,7 +5,7 @@ const zfetch = @import("zfetch"); |
| 5 | | 5 | |
| 6 | pub fn main() !void { | 6 | pub fn main() !void { |
| 7 | var gpa = std.heap.GeneralPurposeAllocator(.{}){}; | 7 | var gpa = std.heap.GeneralPurposeAllocator(.{}){}; |
| 8 | const alloc = &gpa.allocator; | 8 | const alloc = gpa.allocator(); |
| 9 | | 9 | |
| 10 | const url = "https://old.reddit.com/r/Zig/.json"; | 10 | const url = "https://old.reddit.com/r/Zig/.json"; |
| 11 | | 11 | |