Commit c3ddf5069e

Andrew Kelley <superjoe30@gmail.com>
2018-05-10 05:48:50
zig fmt: fix not writing results
1 parent 4438c5e
Changed files (1)
src-self-hosted
src-self-hosted/main.zig
@@ -710,6 +710,7 @@ fn cmdFmt(allocator: &Allocator, args: []const []const u8) !void {
         defer baf.destroy();
 
         try std.zig.render(allocator, baf.stream(), &tree);
+        try baf.finish();
     }
 }