Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/int.cr
Original file line number Diff line number Diff line change
@@ -340,7 +340,7 @@ struct Int
TimesIterator(typeof(self)).new(self)
end

def upto(n, &block : self ->) : Nil
def upto(to, &block : self ->) : Nil
x = self
while x <= to
yield x

0 comments on commit 904b9fa

Please sign in to comment.