8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a18057 commit 9a3cf67Copy full SHA for 9a3cf67
design-patterns/iterator.html
@@ -11,7 +11,7 @@
11
*/
12
13
var element;
14
- while (element - agg.next()) {
+ while (element = agg.next()) {
15
// do something with the element
16
console.log(element);
17
}
@@ -68,4 +68,4 @@
68
// http://shop.oreilly.com/product/9780596806767.do?sortby=publicationDate
69
</script>
70
</body>
71
-</html>
+</html>
0 commit comments