commit ffcac37275a06110352a5c31a5db67724baacdfc
parent 91e996b55636bdc7bf094d5c39227d699ca24881
Author: Walther Chen <walther.chen@gmail.com>
Date: Thu, 10 Nov 2022 23:23:23 -0500
typo
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/opt1.zig b/src/opt1.zig
@@ -33,7 +33,7 @@ test "og: interpret hello world" {
}
fn interpret(program: Program, memory: []u8, rdr: anytype, wtr: anytype, alloc: Allocator) !void {
- var instruction_count = if (TRACE) std.AutoHashMap(u8, usize).init(alloc) orelse undefined;
+ var instruction_count = if (TRACE) std.AutoHashMap(u8, usize).init(alloc) else undefined;
if (TRACE) {
defer instruction_count.deinit();
}