Merge pull request #1007 from Violet-Bora-Lee/patch-3
update comment on sample code
This commit is contained in:
commit
4d17a15ba3
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ function makeCounter() {
|
||||||
let count = 0;
|
let count = 0;
|
||||||
|
|
||||||
return function() {
|
return function() {
|
||||||
return count++; // has access to the outer counter
|
return count++; // has access to the outer "count"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue