Interpreter - Fixed typo

This commit is contained in:
Emmanuel BENOîT 2023-01-02 20:06:12 +01:00
parent 8b74cd932d
commit 360ec57914

View file

@ -49,7 +49,7 @@ impl Environment {
if self.values.contains_key(&name.lexeme as &str) {
Err(InterpreterError::new(
name,
&format!("variables '{}' already defined in scope", name.lexeme),
&format!("variable '{}' already defined in scope", name.lexeme),
))
} else {
self.values.insert(name.lexeme.clone(), value);