Skip to content

Commit

Permalink
Fix comment for Var evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
frizensami committed Aug 6, 2019
1 parent ac9833e commit f00ddcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Evaluator.hs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ evalOne (Const str exp) state = do
else return (evalVal, updateConst state str evalVal)

evalOne (Var str) state =
-- Do not allow let expressions to override things that are marked const
-- Variables must be declared!
case Map.lookup str (progvariables state) of
(Just val) -> return (val, state)
Nothing ->
Expand Down

0 comments on commit f00ddcf

Please # to comment.