Merge pull request #1007 from Violet-Bora-Lee/patch-3

update comment on sample code
This commit is contained in:
Ilya Kantor 2019-05-24 11:49:39 +03:00 committed by GitHub
commit 4d17a15ba3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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