Skip to content

Commit f62ce45

Browse files
0xflotusjethrolarson
authored andcommitted
fixed two small errors
1 parent 77f9117 commit f62ce45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ add2(10) // 12
191191
## Closure
192192

193193
A closure is a way of accessing a variable outside its scope.
194-
Formally, a closure is a technique for implementing lexically scopped named binding. It is a way of storing a function with an environment.
194+
Formally, a closure is a technique for implementing lexically scoped named binding. It is a way of storing a function with an environment.
195195

196196
A closure is a scope which captures local variables of a function for access even after the execution has moved out of the block in which it is defined.
197197
ie. they allow referencing a scope after the block in which the variables were declared has finished executing.
@@ -217,7 +217,7 @@ A closure is a function that encloses its surrounding state by referencing field
217217

218218
__Further reading/Sources__
219219
* [Lambda Vs Closure](http://stackoverflow.com/questions/220658/what-is-the-difference-between-a-closure-and-a-lambda)
220-
* [JavaScript Closures highly voted disucussion](http://stackoverflow.com/questions/111102/how-do-javascript-closures-work)
220+
* [JavaScript Closures highly voted discussion](http://stackoverflow.com/questions/111102/how-do-javascript-closures-work)
221221

222222
## Auto Currying
223223
Transforming a function that takes multiple arguments into one that if given less than its correct number of arguments returns a function that takes the rest. When the function gets the correct number of arguments it is then evaluated.

0 commit comments

Comments
 (0)