12 lines
208 B
Markdown
12 lines
208 B
Markdown
## Exit
|
|
|
|
How to exit an application based on user input.
|
|
|
|
The __[`main`]__ file contains all the code of the example.
|
|
|
|
You can run it with `cargo run`:
|
|
```
|
|
cargo run --package exit
|
|
```
|
|
|
|
[`main`]: src/main.rs
|