Minor documentation change in the lexer

This commit is contained in:
Nocturn9x 2021-10-29 12:35:47 +02:00
parent d81948ed23
commit fd336b5761
1 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,8 @@ proc peek(self: Lexer, distance: int = 0): char =
## negative to retrieve previously consumed
## tokens, while the default distance is 0
## (retrieves the next token to be consumed).
## If the given distance goes beyond EOF, a
## null terminator is returned
if self.done() or self.current + distance > self.source.high():
result = '\0'
else: