doc(iterator): fix 示例代码

This commit is contained in:
ruanyf
2016-05-11 20:10:22 +08:00
parent 438e35c162
commit 39786a0f62
+1 -1
View File
@@ -181,7 +181,7 @@ Obj.prototype[Symbol.iterator] = function(){
function next(){
if (current){
var value = current.value;
var done = current.next === undefined;
var done = current.next === null;
current = current.next;
return {
done: done,