From 4e040e0021c0a0ce96ac71ff9f26824648a57f1a Mon Sep 17 00:00:00 2001 From: emma Date: Wed, 7 Feb 2024 18:51:58 -0700 Subject: [PATCH] rpn(1): added alternative representation for powers --- src/rpn.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpn.rs b/src/rpn.rs index 6cbb55b..048a593 100644 --- a/src/rpn.rs +++ b/src/rpn.rs @@ -77,7 +77,7 @@ impl From<&str> for CalcType { "-" | "−" => Subtract, "*" | "×" => Multiply, "/" | "÷" => Divide, - "^" => Power, + "^" | "**" => Power, "//" => Floor, "%" => Modulo, _ => {