fix(iterators): the index does not increase (#1399)

This commit is contained in:
Edwar Martinez Vale
2022-07-05 19:07:36 -04:00
committed by GitHub
parent 269820e800
commit 418fc971fc

View File

@@ -52,12 +52,12 @@ function NodeIterator:iterate()
i = i + idx i = i + idx
if n then if n then
return n, i return n, i
end
else else
i = i + 1 i = i + 1
end end
end end
end end
end
return nil, i return nil, i
end end