fix error handler #3

Merged
jana merged 1 commit from computerdruid/hanoigame:push-omrvkqpsolyv into main 2025-09-03 19:41:03 +02:00
Showing only changes of commit ea3c02262f - Show all commits

View file

@ -473,8 +473,8 @@ impl<const TOWER_HEIGHT: usize> Game<TOWER_HEIGHT> {
}
fn ask_tower(&self, msg: &str) -> io::Result<Input> {
let mut res = String::new();
loop {
let mut res = String::new();
print!("{msg} (enter a tower number, exit, clear or undo):");
stdout().flush()?;
stdin().read_line(&mut res)?;