slight clean up & handle grammar readme

This commit is contained in:
gluax 2022-05-25 10:45:25 -07:00
parent 8cb4b19e66
commit 936360793c
2 changed files with 2 additions and 2 deletions

View File

@ -171,12 +171,12 @@ impl<'a> TypeChecker<'a> {
// Allow `group` * `scalar` multiplication. // Allow `group` * `scalar` multiplication.
match (t1.as_ref(), t2.as_ref()) { match (t1.as_ref(), t2.as_ref()) {
(Some(Type::Group), Some(other)) => { (Some(Type::Group), Some(other)) => {
self.assert_type(t1.unwrap(), expected, binary.left.span()); self.assert_type(Type::Group, expected, binary.left.span());
self.assert_type(*other, Some(Type::Scalar), binary.span()); self.assert_type(*other, Some(Type::Scalar), binary.span());
Some(Type::Group) Some(Type::Group)
} }
(Some(other), Some(Type::Group)) => { (Some(other), Some(Type::Group)) => {
self.assert_type(t2.unwrap(), expected, binary.left.span()); self.assert_type(Type::Group, expected, binary.left.span());
self.assert_type(*other, Some(Type::Scalar), binary.span()); self.assert_type(*other, Some(Type::Scalar), binary.span());
Some(Type::Group) Some(Type::Group)
} }

Binary file not shown.