mirror of
https://github.com/CPunch/Cosmo.git
synced 2025-10-15 13:40:10 +00:00
better increment test
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user