Update to latest std lib changes regarding Zig parsing

This commit is contained in:
mlarouche
2023-02-04 16:54:15 -05:00
parent dee86a06cb
commit e9e4e0d77f
2 changed files with 2 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ pub fn main() !void {
try out_buffer.append(0);
const src = out_buffer.items[0 .. out_buffer.items.len - 1 :0];
const tree = try std.zig.parse(allocator, src);
const tree = try std.zig.Ast.parse(allocator, src, .zig);
const formatted = try tree.render(allocator);
defer allocator.free(formatted);