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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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