Use 'exponent' instead of 'power'
This commit is contained in:
parent
4df395ab59
commit
6bd8293901
1 changed files with 2 additions and 2 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue