]> Repositories - zlox.git/blobdiff - lox.zig
Fix style and refactor
[zlox.git] / lox.zig
diff --git a/Lox.zig b/lox.zig
similarity index 99%
rename from Lox.zig
rename to lox.zig
index 56a1572a8431f529aaafad5ce367fcd18c57f211..ec4478bce4aa8e614b020308006ef128d46f51ae 100644 (file)
--- a/Lox.zig
+++ b/lox.zig
@@ -29,8 +29,10 @@ fn runFile(allocator: Allocator, path: []const u8) !u8 {
     const bytes = try std.fs.cwd().readFileAlloc(allocator, path, std.math.maxInt(usize));
     defer allocator.free(bytes);
     try run(allocator, bytes);
+
     // Indicate an error in the exit code.
     if (hadError) return 65;
+
     return 0;
 }