Skip to content

Commit

Permalink
Merge pull request hemanth#149 from sunnypatel165/master
Browse files Browse the repository at this point in the history
Fix Typo in Closure
  • Loading branch information
hemanth authored May 10, 2017
2 parents 742ea02 + 9045867 commit b1e4b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ add2(10) // 12
## Closure

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

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.
ie. they allow referencing a scope after the block in which the variables were declared has finished executing.
Expand Down

0 comments on commit b1e4b26

Please sign in to comment.