feat: support unicode mult & div
This commit is contained in:
parent
4d7a806caa
commit
9372d5dfa8
1 changed files with 2 additions and 2 deletions
|
|
@ -21,8 +21,8 @@ impl TryFrom<char> for Operator {
|
||||||
match value {
|
match value {
|
||||||
'+' => Ok(Self::Plus),
|
'+' => Ok(Self::Plus),
|
||||||
'-' => Ok(Self::Minus),
|
'-' => Ok(Self::Minus),
|
||||||
'*' => Ok(Self::Mult),
|
'*' | '×' => Ok(Self::Mult),
|
||||||
'/' => Ok(Self::Div),
|
'/' | '÷' => Ok(Self::Div),
|
||||||
'^' => Ok(Self::Exp),
|
'^' => Ok(Self::Exp),
|
||||||
_ => Err(value),
|
_ => Err(value),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue