diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-24 20:37:53 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-24 20:43:27 +0200 |
| commit | 22c7aa339407042682eef78f7d1ae1398e1d9b79 (patch) | |
| tree | a7ba615e5a98e32c53e9144e042e6f6a9f3c89d2 /src/root.zig | |
| parent | e7fa254387e450154f03b2d1bdef361a0adb80d1 (diff) | |
perf(lexer): replace nextKind by peek
Diffstat (limited to 'src/root.zig')
| -rw-r--r-- | src/root.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/root.zig b/src/root.zig index ac95f31..82ac3b1 100644 --- a/src/root.zig +++ b/src/root.zig @@ -56,7 +56,7 @@ pub fn parse(alloc: std.mem.Allocator, content: []const u8) Error![]const u8 { return parser.parse(alloc, content); } -pub fn zigParse(alloc: std.mem.Allocator, r: *std.io.Reader) ![]const u8 { +pub fn parseReader(alloc: std.mem.Allocator, r: *std.io.Reader) (Error || std.io.Reader.Error)![]const u8 { return parser.parseReader(alloc, r); } |
