better increment test

This commit is contained in:
CPunch 2021-01-10 13:20:09 -06:00
parent f0b666f623
commit 8dc8cef7dc

View File

@ -23,11 +23,7 @@ proto Vector
end end
function __next(self) function __next(self)
if self.iterIndex > self.x then return self.vector[self.iterIndex++]
return nil
end
return vector[self.iterIndex++]
end end
end end