]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/src/docs/exit.txt
Merge commit '266e96785ab71834b917bf474f130a6d8fdecd4b' into sync_cg_clif-2022-10-23
[rust.git] / src / tools / clippy / src / docs / exit.txt
1 ### What it does
2 `exit()`  terminates the program and doesn't provide a
3 stack trace.
4
5 ### Why is this bad?
6 Ideally a program is terminated by finishing
7 the main function.
8
9 ### Example
10 ```
11 std::process::exit(0)
12 ```