diff options
Diffstat (limited to 'users/tazjin/rlox/src/interpreter.rs')
-rw-r--r-- | users/tazjin/rlox/src/interpreter.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/users/tazjin/rlox/src/interpreter.rs b/users/tazjin/rlox/src/interpreter.rs index a1d246ba2eb2..6c61288d5a7d 100644 --- a/users/tazjin/rlox/src/interpreter.rs +++ b/users/tazjin/rlox/src/interpreter.rs @@ -107,13 +107,13 @@ impl Environment { } fn get(&self, name: &parser::Variable) -> Result<Value, Error> { - let ident = identifier_str(&name.0)?; + let ident = identifier_str(&name.name)?; self.values .get(ident) .map(Clone::clone) .ok_or_else(|| Error { - line: name.0.line, + line: name.name.line, kind: ErrorKind::UndefinedVariable(ident.into()), }) .or_else(|err| { |