From eb101439d92ca13d92a047af24fbbe2ed6f571cc Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 28 Mar 2023 13:31:40 -0700 Subject: [PATCH] fixed substitutions --- src/parser/find_subs.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/parser/find_subs.rs b/src/parser/find_subs.rs index 4ec62d9..99efbea 100644 --- a/src/parser/find_subs.rs +++ b/src/parser/find_subs.rs @@ -28,6 +28,8 @@ pub(in crate::parser) fn find_subs( let target = match &s[..] { "*" => {Some("×")}, "/" => {Some("÷")}, + "sqrt" => {Some("√")}, + "rt" => {Some("√")}, _ => {None} }; @@ -64,11 +66,6 @@ pub(in crate::parser) fn find_subs( "chi" => {Some("χ")}, "psi" => {Some("ψ")}, "omega" => {Some("ω")}, - - // Operators - "sqrt" => {Some("√")}, - "rt" => {Some("√")}, - _ => {None} };