We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2f4701 commit 2a48fb4Copy full SHA for 2a48fb4
src/main.rs
@@ -2,10 +2,12 @@
2
use std::io::{self, Write};
3
4
fn main() {
5
- print!("$ ");
6
- io::stdout().flush().unwrap();
+ loop{
+ print!("$ ");
7
+ io::stdout().flush().unwrap();
8
- let mut command = String::new();
9
- io::stdin().read_line(&mut command).unwrap();
10
- println!("{}: command not found",command.trim());
+ let mut command = String::new();
+ io::stdin().read_line(&mut command).unwrap();
11
+ println!("{}: command not found",command.trim());
12
+ }
13
}
0 commit comments