Errors - Missing space in message

This commit is contained in:
Emmanuel BENOîT 2022-12-31 13:48:00 +01:00
parent bc4541a50e
commit 2aa9fb278a

View file

@ -41,7 +41,7 @@ impl ParserError {
pos: if token.token_type == TokenType::Eof { pos: if token.token_type == TokenType::Eof {
String::from(" at end of input") String::from(" at end of input")
} else { } else {
format!("at '{}'", token.lexeme) format!(" at '{}'", token.lexeme)
}, },
message: String::from(message), message: String::from(message),
} }