Renamed variable

This commit is contained in:
Sayantan Santra 2022-06-07 00:34:39 -05:00
parent dbf2a7afc9
commit 6192c22c19

View file

@ -49,9 +49,9 @@ fn main() {
// ask if we want to go again // ask if we want to go again
print!("Would you like to do it again? (y/N)"); print!("Would you like to do it again? (y/N)");
io::stdout().flush().unwrap(); io::stdout().flush().unwrap();
let mut responce = String::new(); let mut response = String::new();
io::stdin().read_line(&mut responce).unwrap(); io::stdin().read_line(&mut response).unwrap();
if !(responce.contains("Y") || responce.contains("y")) { if !(response.contains("Y") || response.contains("y")) {
break; break;
} }
} }