Skip to content

Commit 7ce8501

Browse files
authored
Fix error message of the eval_boolean_infix (#203)
1 parent 0f04fe6 commit 7ce8501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interpreter/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ fn eval_boolean_infix(op: &Token, left: bool, right: bool) -> Result<Rc<Object>,
222222
let result = match &op.kind {
223223
TokenKind::EQ => Object::Boolean(left == right),
224224
TokenKind::NotEq => Object::Boolean(left != right),
225-
op => return Err(format!("Invalid infix operator for int: {}", op)),
225+
op => return Err(format!("Invalid infix operator for boolean: {}", op)),
226226
};
227227

228228
Ok(Rc::from(result))

0 commit comments

Comments
 (0)