From 47cfb1dcce28c6473e58ed3a1e86d9d06d141a53 Mon Sep 17 00:00:00 2001 From: Juergen Stuber Date: Fri, 8 Nov 2024 17:39:00 +0100 Subject: [PATCH] Update lines from top to bottom for a more natural ordering --- src/bin/primes/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/primes/main.rs b/src/bin/primes/main.rs index bde3f78..09cdb4f 100644 --- a/src/bin/primes/main.rs +++ b/src/bin/primes/main.rs @@ -209,7 +209,7 @@ fn main() -> Result<()> { let mut new_frame = Frame::new(bbox); let mut new_visible_primes = (0..lines).map(|_| Vec::new()).collect::>(); - for i in 0..lines { + for i in (0..lines).rev() { let mut pos = start_positions[i]; // Render the primes that are already visible.