update comment on sample code

This commit is contained in:
Violet.Lee 2019-05-24 12:11:09 +09:00 committed by GitHub
parent df7800adda
commit 4594d12eb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"
}; };
} }