diff --git a/src/main.rs b/src/main.rs index d6477b7..24855db 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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),