Rename as_bool to as_truthy, and fix TypeSet::as_bool (#6027)

This commit is contained in:
Trevor Elliott
2023-03-17 14:11:24 -07:00
committed by GitHub
parent 2c40c267d4
commit 78dbe93f21
6 changed files with 49 additions and 33 deletions

View File

@@ -1627,7 +1627,7 @@ pub(crate) fn define(
Operand::new("x", Int),
Operand::new("y", Int),
])
.operands_out(vec![Operand::new("a", &Int.as_bool())]),
.operands_out(vec![Operand::new("a", &Int.as_truthy())]),
);
ig.push(
@@ -2684,7 +2684,7 @@ pub(crate) fn define(
Operand::new("x", Float),
Operand::new("y", Float),
])
.operands_out(vec![Operand::new("a", &Float.as_bool())]),
.operands_out(vec![Operand::new("a", &Float.as_truthy())]),
);
ig.push(