Skip to content

Commit

Permalink
Merge pull request chuanxshi#36 from shawjia/master
Browse files Browse the repository at this point in the history
I found a little typo, now fix it. please accept my pull request. thanks.
  • Loading branch information
chuanxshi committed Feb 2, 2012
2 parents 882a348 + 2b4209c commit bdf58e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions general-patterns/for-in-loops.html
Expand Up @@ -28,7 +28,7 @@
// antipattern
// for-in loop without checking hasOwnProperty()
for (var i in man) {
console.log(1, ":", man[i]);
console.log(i, ":", man[i]);
}
/*
* result in the console
Expand Down Expand Up @@ -78,4 +78,4 @@
// http://net.tutsplus.com/tutorials/javascript-ajax/the-essentials-of-writing-high-quality-javascript/
</script>
</body>
</html>
</html>

0 comments on commit bdf58e7

Please sign in to comment.