Skip to content

Commit 05b41ce

Browse files
committed
Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages
2 parents d0baadb + 84858da commit 05b41ce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/iterator.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,8 @@ class RangeIterator {
165165
if (value < this.stop) {
166166
this.value++;
167167
return {done: false, value: value};
168-
} else {
169-
return {done: true, value: undefined};
170168
}
169+
return {done: true, value: undefined};
171170
}
172171
}
173172

0 commit comments

Comments
 (0)