diff --git a/examples/increment.cosmo b/examples/increment.cosmo index 3351bda..908f6f2 100644 --- a/examples/increment.cosmo +++ b/examples/increment.cosmo @@ -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