main : pas de valeur par défaut pour bytes_read
, la boucle devient infinie
This commit is contained in:
parent
8008b7d510
commit
66d0cceb60
1 changed files with 2 additions and 2 deletions
|
@ -8,9 +8,9 @@ fn exit() {
|
|||
|
||||
fn main() {
|
||||
let mut user_input = String::new();
|
||||
let mut bytes_read = 1;
|
||||
let mut bytes_read;
|
||||
|
||||
while bytes_read != 0 {
|
||||
loop {
|
||||
print!("$ ");
|
||||
io::stdout().flush().unwrap();
|
||||
|
||||
|
|
Loading…
Reference in a new issue