From 206fa13fad53c1660f569da4996cf4990904e8f9 Mon Sep 17 00:00:00 2001 From: Zachary Russell Date: Tue, 23 Oct 2018 09:24:42 -0400 Subject: [PATCH] Make function name correct The function is described in this flow is the `uniqueWords()` wrapper function not `wordsUsed()` --- manuscript/ch4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manuscript/ch4.md b/manuscript/ch4.md index 96f5b2cf..37f52878 100644 --- a/manuscript/ch4.md +++ b/manuscript/ch4.md @@ -118,7 +118,7 @@ function uniqueWords(str) { `uniqueWords(..)` takes a string and returns an array. It's a composition of the two functions: `unique(..)` and `words(..)`; it creates this flow of data: ```txt -wordsUsed <-- unique <-- words <-- text +uniqueWords <-- unique <-- words <-- text ``` You probably recognize it by now: the unfolding revolution in candy factory design is function composition.