diff options
Diffstat (limited to 'src/tools/clippy/src/docs/panic.txt')
-rw-r--r-- | src/tools/clippy/src/docs/panic.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/clippy/src/docs/panic.txt b/src/tools/clippy/src/docs/panic.txt new file mode 100644 index 000000000..f9bdc6e87 --- /dev/null +++ b/src/tools/clippy/src/docs/panic.txt @@ -0,0 +1,10 @@ +### What it does +Checks for usage of `panic!`. + +### Why is this bad? +`panic!` will stop the execution of the executable + +### Example +``` +panic!("even with a good reason"); +```
\ No newline at end of file |