From 8b21292fbe8daaa6fcbdf65b80abba495d611bc2 Mon Sep 17 00:00:00 2001 From: Umur Ozkul Date: Fri, 25 Mar 2022 19:12:11 +0100 Subject: [PATCH] fix MathJs spelling --- .../Reducer/Reducer_Dispatch/Reducer_Dispatch_BuiltIn.res | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/squiggle-lang/src/rescript/Reducer/Reducer_Dispatch/Reducer_Dispatch_BuiltIn.res b/packages/squiggle-lang/src/rescript/Reducer/Reducer_Dispatch/Reducer_Dispatch_BuiltIn.res index 187f6ca4..1f8ad87c 100644 --- a/packages/squiggle-lang/src/rescript/Reducer/Reducer_Dispatch/Reducer_Dispatch_BuiltIn.res +++ b/packages/squiggle-lang/src/rescript/Reducer/Reducer_Dispatch/Reducer_Dispatch_BuiltIn.res @@ -14,7 +14,7 @@ exception TestRescriptException let callInternal = (call: CTV.functionCall): result<'b, reducerError> =>{ - let callMatjJs = (call: CTV.functionCall): result<'b, reducerError> => + let callMathJs = (call: CTV.functionCall): result<'b, reducerError> => switch call { | ("jsraise", [msg]) => Js.Exn.raiseError(CTV.show(msg)) // For Tests | ("resraise", _) => raise(TestRescriptException) // For Tests @@ -51,7 +51,7 @@ let callInternal = (call: CTV.functionCall): result<'b, reducerError> =>{ arrayAtIndex(aValueArray, fIndex) | ("$atIndex", [CTV.CtvRecord(dict), CTV.CtvArray([CTV.CtvString(sIndex)])]) => recordAtIndex(dict, sIndex) | ("$atIndex", [obj, index]) => (CTV.showWithType(obj) ++ "??~~~~" ++ CTV.showWithType(index))->CTV.CtvString->Ok - | call => callMatjJs(call) + | call => callMathJs(call) } }