From d79c4baa9df39cb4245fae3ad8e129a3a218a0b9 Mon Sep 17 00:00:00 2001 From: Ozzie Gooen Date: Fri, 31 Jul 2020 09:28:45 +0100 Subject: [PATCH] Minor fixes --- src/distPlus/expressionTree/ExpressionTypes.re | 2 +- src/distPlus/renderers/DistPlusRenderer.re | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/distPlus/expressionTree/ExpressionTypes.re b/src/distPlus/expressionTree/ExpressionTypes.re index cf287ae7..c3a93a1f 100644 --- a/src/distPlus/expressionTree/ExpressionTypes.re +++ b/src/distPlus/expressionTree/ExpressionTypes.re @@ -38,7 +38,7 @@ module ExpressionTree = { type t = environment let empty:t = [||]->Belt.Map.String.fromArray let update = (t,str, fn) => Belt.Map.String.update(t, str, fn) - let get = (t,str) => Belt.Map.String.get(t, str) + let get = (t:t,str) => Belt.Map.String.get(t, str) } type evaluationParams = { diff --git a/src/distPlus/renderers/DistPlusRenderer.re b/src/distPlus/renderers/DistPlusRenderer.re index 0fa88d41..25b825f9 100644 --- a/src/distPlus/renderers/DistPlusRenderer.re +++ b/src/distPlus/renderers/DistPlusRenderer.re @@ -127,7 +127,7 @@ module Internals = { let inputsToShape = (inputs: inputs) => { MathJsParser.fromString(inputs.guesstimatorString, inputs.environment) |> E.R.bind(_, g => runProgram(inputs, g)) - |> E.R.bind(_, r => E.A.last(r) |> E.O.toResult("sdf")); + |> E.R.bind(_, r => E.A.last(r) |> E.O.toResult("No rendered lines")); }; let outputToDistPlus = (inputs: Inputs.inputs, shape: DistTypes.shape) => {