flush ?
This commit is contained in:
@@ -3,6 +3,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||||||
let mut input = String::new();
|
let mut input = String::new();
|
||||||
|
|
||||||
println!("Please input: ");
|
println!("Please input: ");
|
||||||
|
// io::stdout().flush().ok();
|
||||||
io::stdin().read_line(&mut input)?;
|
io::stdin().read_line(&mut input)?;
|
||||||
|
|
||||||
println!("You typed: {}", input.trim());
|
println!("You typed: {}", input.trim());
|
||||||
|
|||||||
Reference in New Issue
Block a user