Skip to content

Commit 49d8be6

Browse files
authored
Update main.rs
1 parent 902f921 commit 49d8be6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ch11/pow/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn find(
2626
sender: mpsc::Sender<Solution>,
2727
is_solution_found: Arc<AtomicBool>
2828
) {
29-
for number in (start_at..).step(THREADS) {
29+
for number in (start_at..).step_by(THREADS) {
3030
if is_solution_found.load(Ordering::Relaxed) { return; }
3131
if let Some(solution) = verify(number) {
3232
is_solution_found.store(true, Ordering::Relaxed);

0 commit comments

Comments
 (0)