Skip to content

Instantly share code, notes, and snippets.

fn input(msg: &str) -> String {
print!("{}", msg);
let mut input = String::new();
io::stdout().flush().unwrap();
io::stdin().read_line(&mut input).unwrap();
input.trim().to_string()
}