Context
I downloaded the books Source code (zip file), extracted it, installed the dependencies (mix deps.get) and then compiled it (mix compile)
Error
I was then presented with the following error:
== Compilation error in file lib/fun_park/ride/fast_lane.ex ==
** (SyntaxError) invalid syntax found on lib/fun_park/ride/fast_lane.ex:73:32:
error: syntax error before: fast
│
73 │ |> ensure_eligibility(ride)fast
│ ^
│
└─ lib/fun_park/ride/fast_lane.ex:73:32
(elixir 1.19.5) lib/kernel/parallel_compiler.ex:529: anonymous fn/5 in Kernel.ParallelCompiler.spawn_workers/8
Fix
To get to a successful compile, I remove the stray fast by changing the following line from:
|> ensure_eligibility(ride)fast
to:
|> ensure_eligibility(ride)