summary refs log tree commit diff
path: root/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig
index e95bd48..bc88aeb 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -50,7 +50,7 @@ fn process_buf(buf: []u8, allocator: std.mem.Allocator, arena: *std.heap.ArenaAl
     defer token_list.deinit();
 
     var source_tokenizer = try tokenizer.Tokenizer.init(buf);
-    while (source_tokenizer.next()) |token| {
+    while (try source_tokenizer.next()) |token| {
         try token_list.append(token);
     }