Skip to content

Commit d2158b7

Browse files
committed
fix custom range()
1 parent 4e0285b commit d2158b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/range.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace skrtdev\async;
44

55
function range (int $start, int $end, int $step = 1): \Generator {
6-
for ($i=$start; $i < $end; $i++) {
6+
for ($i = $start; $i < $end; $i += $step) {
77
yield $i;
88
}
99
}

0 commit comments

Comments
 (0)