main : ajout fonction exit
This commit is contained in:
parent
8902a6967d
commit
8008b7d510
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue