From 0945010f0fdab0066d03b0921f7061d8130a8d32 Mon Sep 17 00:00:00 2001 From: Adrien Burgun Date: Mon, 15 Aug 2022 13:05:15 +0200 Subject: [PATCH] :bug: Fix `run ` in stackline-cli --- stackline-cli/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stackline-cli/src/main.rs b/stackline-cli/src/main.rs index 05546e4..c5ea168 100644 --- a/stackline-cli/src/main.rs +++ b/stackline-cli/src/main.rs @@ -293,7 +293,7 @@ fn run(world: &mut World, steps: usize) -> std::io::Result<()> { let mut first = true; world.init(); - for _ in 0..steps { + for _ in 0..=steps { if !first { world.step(); write!(stdout, "\x1b[{};A", world.get_bounds().3)?;