main : afficher l'input s'il y en a un
This commit is contained in:
parent
0e79d25d7d
commit
443d5d50a9
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@ fn main() {
|
|||
if bytes_read == 0 {
|
||||
println!();
|
||||
exit();
|
||||
} else {
|
||||
let user_input = user_input.trim();
|
||||
|
||||
println!("{}", user_input);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue