We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 902f921 commit 49d8be6Copy full SHA for 49d8be6
src/ch11/pow/src/main.rs
@@ -26,7 +26,7 @@ fn find(
26
sender: mpsc::Sender<Solution>,
27
is_solution_found: Arc<AtomicBool>
28
) {
29
- for number in (start_at..).step(THREADS) {
+ for number in (start_at..).step_by(THREADS) {
30
if is_solution_found.load(Ordering::Relaxed) { return; }
31
if let Some(solution) = verify(number) {
32
is_solution_found.store(true, Ordering::Relaxed);
0 commit comments