main : ajout fonction exit

This commit is contained in:
Ahurac 2024-04-09 12:18:26 +02:00
parent 8902a6967d
commit 8008b7d510

View file

@ -1,6 +1,11 @@
use std::io; use std::io;
use std::io::Write; use std::io::Write;
fn exit() {
println!("exit");
std::process::exit(0);
}
fn main() { fn main() {
let mut user_input = String::new(); let mut user_input = String::new();
let mut bytes_read = 1; let mut bytes_read = 1;