update comment on sample code
This commit is contained in:
parent
df7800adda
commit
4594d12eb1
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ function makeCounter() {
|
|||
let count = 0;
|
||||
|
||||
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