From ead82ebe77ea10b7004b8da55e1463df323459ea Mon Sep 17 00:00:00 2001 From: Anikeev Gennadiy <30929183+anikeef@users.noreply.github.com> Date: Wed, 12 Jan 2022 21:31:09 +0600 Subject: [PATCH] Minor fix in 5th chapter exercise --- ch05.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch05.md b/ch05.md index 646dae74..7a3123ab 100644 --- a/ch05.md +++ b/ch05.md @@ -335,7 +335,7 @@ Refactor `fastestCar` using `compose()` and other functions in pointfree-style. {% initial src="./exercises/ch05/exercise_c.js#L4;" %} ```js const fastestCar = (cars) => { - const sorted = sortBy(car => car.horsepower); + const sorted = sortBy(car => car.horsepower, cars); const fastest = last(sorted); return concat(fastest.name, ' is the fastest'); };