Skip to content

Commit

Permalink
Fix typo in function name (#852)
Browse files Browse the repository at this point in the history
This was suggested in #850 as a typo. `git grep ignoredEntites` now comes back empty and `stack build` compiles cleanly.
  • Loading branch information
bwignall authored Nov 12, 2022
1 parent 0f98116 commit 2e86591
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Swarm/DocGen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ recipesToDot classic emap recipes = do
-- --------------------------------------------------------------------------
-- add nodes with for all the known entities
let enames' = toList . Map.keysSet . entitiesByName $ emap
enames = filter (`Set.notMember` ignoredEntites) enames'
enames = filter (`Set.notMember` ignoredEntities) enames'
ebmap <- Map.fromList . zip enames <$> mapM (box . unpack) enames
-- --------------------------------------------------------------------------
-- getters for the NodeId based on entity name or the whole entity
Expand Down Expand Up @@ -537,8 +537,8 @@ startingInventory :: Scenario -> Map Entity Int
startingInventory = Map.fromList . map swap . E.elems . view robotInventory . instantiateRobot 0 . head . view scenarioRobots

-- | Ignore utility entities that are just used for tutorials and challenges.
ignoredEntites :: Set Text
ignoredEntites =
ignoredEntities :: Set Text
ignoredEntities =
Set.fromList
[ "upper left corner"
, "upper right corner"
Expand Down

0 comments on commit 2e86591

Please sign in to comment.