From c57cda73651d4a70a64255e11f150b08dd8829c0 Mon Sep 17 00:00:00 2001 From: kafkaphoenix Date: Tue, 29 May 2018 13:11:33 +0200 Subject: [PATCH] Update fromtostep.lua --- 07Iterators/fromtostep.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/07Iterators/fromtostep.lua b/07Iterators/fromtostep.lua index 937bd1d..25029e5 100644 --- a/07Iterators/fromtostep.lua +++ b/07Iterators/fromtostep.lua @@ -23,7 +23,7 @@ function fromto(min, max, step) -- return iterator and crease the invariant -- state - return iter, {max=max, step=step}, min-1 + return iter, {max=max, step=step}, min-step end -- test the iterator in a for loop