From 8c4cc0f890823f38d795bb6287b7982b33480253 Mon Sep 17 00:00:00 2001 From: mksenzov Date: Sat, 18 Jan 2014 19:21:03 -0500 Subject: [PATCH] Typo fixed in side -> inside --- manuscript/markdown/Functions/closures.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manuscript/markdown/Functions/closures.md b/manuscript/markdown/Functions/closures.md index 175fbb3..47a3368 100644 --- a/manuscript/markdown/Functions/closures.md +++ b/manuscript/markdown/Functions/closures.md @@ -63,7 +63,7 @@ Pure functions are easiest to understand. They always mean the same thing wherev } } -The first function doesn't have any variables, therefore doesn't have any free variables. The second doesn't have any free variables, because its only variable is bound. The third one is actually two functions, one in side the other. `function (y) ...` has a free variable, but the entire expression refers to `function (x) ...`, and it doesn't have a free variable: The only variable anywhere in its body is `x`, which is certainly bound within `function (x) ...`. +The first function doesn't have any variables, therefore doesn't have any free variables. The second doesn't have any free variables, because its only variable is bound. The third one is actually two functions, one inside the other. `function (y) ...` has a free variable, but the entire expression refers to `function (x) ...`, and it doesn't have a free variable: The only variable anywhere in its body is `x`, which is certainly bound within `function (x) ...`. From this, we learn something: A pure function can contain a closure.