Interpreter - Fixed typo
This commit is contained in:
parent
8b74cd932d
commit
360ec57914
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ impl Environment {
|
||||||
if self.values.contains_key(&name.lexeme as &str) {
|
if self.values.contains_key(&name.lexeme as &str) {
|
||||||
Err(InterpreterError::new(
|
Err(InterpreterError::new(
|
||||||
name,
|
name,
|
||||||
&format!("variables '{}' already defined in scope", name.lexeme),
|
&format!("variable '{}' already defined in scope", name.lexeme),
|
||||||
))
|
))
|
||||||
} else {
|
} else {
|
||||||
self.values.insert(name.lexeme.clone(), value);
|
self.values.insert(name.lexeme.clone(), value);
|
||||||
|
|
Loading…
Reference in a new issue