Skip to content

Commit 6af97c8

Browse files
authored
Merge pull request #1648 from bmusin/patch-1
Typo: insert omitted 'function' keyword
2 parents f6e1e05 + 7dec66e commit 6af97c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scope-closures/ch7.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Now let's examine an example where the closed-over variable is updated:
153153
function makeCounter() {
154154
var count = 0;
155155

156-
return getCurrent(){
156+
return function getCurrent() {
157157
count = count + 1;
158158
return count;
159159
};

0 commit comments

Comments
 (0)