mirror of https://github.com/CPunch/Cosmo.git
better increment test
This commit is contained in:
parent
f0b666f623
commit
8dc8cef7dc
|
@ -23,11 +23,7 @@ proto Vector
|
|||
end
|
||||
|
||||
function __next(self)
|
||||
if self.iterIndex > self.x then
|
||||
return nil
|
||||
end
|
||||
|
||||
return vector[self.iterIndex++]
|
||||
return self.vector[self.iterIndex++]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue