Skip to content

Commit d8f7f92

Browse files
committed
Test d'affichage d'un message dans le terminal
jusqu'à ce que ENTER soit pressé
1 parent 7d39221 commit d8f7f92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
fn main() {
22
println!("Hello, world!");
3+
std::io::stdin().read_line(&mut String::new()).unwrap();
34
}

0 commit comments

Comments
 (0)