Fix switch-up

This commit is contained in:
Florian Schroedl
2022-01-20 17:00:00 +01:00
parent 96bf7fe263
commit 24d335363e

View File

@@ -79,7 +79,7 @@ proc `$`*(x: ParserError): string =
&"""Parsing Error (Character Mismatch Error): &"""Parsing Error (Character Mismatch Error):
{original} {original}
{errSpace}^ Wanted '{unexpected}' but got '{expected}'""" {errSpace}^ Expected '{expected}' but got '{unexpected}'"""
else: "ParseError" else: "ParseError"
proc initParser(str: string): ParserResult = proc initParser(str: string): ParserResult =