scanner: fix peekNext
This commit is contained in:
parent
27b04e1612
commit
9d1d253c94
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ pub const Scanner = struct {
|
|||
|
||||
fn peekNext(self: *Scanner) u8 {
|
||||
if (self.isAtEnd()) return 0;
|
||||
return self.source[self.current + 1];
|
||||
return self.source[self.current - 1];
|
||||
}
|
||||
|
||||
fn skipWhitespace(self: *Scanner) void {
|
||||
|
|
Loading…
Reference in a new issue