diff --git a/src/errors.rs b/src/errors.rs index bf71198..7d9db21 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -41,7 +41,7 @@ impl ParserError { pos: if token.token_type == TokenType::Eof { String::from(" at end of input") } else { - format!("at '{}'", token.lexeme) + format!(" at '{}'", token.lexeme) }, message: String::from(message), }