14 lines
269 B
Rust
14 lines
269 B
Rust
use std::io;
|
|
|
|
pub fn get_user_input() -> String {
|
|
let mut user_input = String::new();
|
|
|
|
io::stdin().read_line(&mut user_input).unwrap();
|
|
|
|
user_input.trim().to_owned()
|
|
}
|
|
|
|
pub fn wait_for_key_press() {
|
|
io::stdin().read_line(&mut String::new()).unwrap();
|
|
}
|