Use 'exponent' instead of 'power'

This commit is contained in:
Erin Nova 2021-09-29 15:40:29 -04:00
parent 4df395ab59
commit 6bd8293901
Signed by: erin
GPG key ID: DA70E064A8C70F44

View file

@ -7,7 +7,7 @@ enum Operators {
Subtract,
Multiply,
Divide,
Power,
Exponent,
}
// Enum of different separators
@ -36,7 +36,7 @@ fn determine_type(block: &str) -> Blocks {
"-" => Blocks::Operator(Operators::Subtract),
"*" => Blocks::Operator(Operators::Multiply),
"/" => Blocks::Operator(Operators::Divide),
"^" => Blocks::Operator(Operators::Power),
"^" => Blocks::Operator(Operators::Exponent),
// Check if it's a separator
"(" => Blocks::Separator(Separators::Open),
")" => Blocks::Separator(Separators::Close),