Skip to content

Commit 8462cce

Browse files
author
Vali Schneider
committed
edited documentation
1 parent ceab1a9 commit 8462cce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/panic_in_result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use rustc_span::Span;
99
declare_clippy_lint! {
1010
/// **What it does:** Checks for usage of `panic!`, `unimplemented!` or `unreachable!` in a function of type result/option.
1111
///
12-
/// **Why is this bad?** For some codebases,
12+
/// **Why is this bad?** For some codebases, it is desirable for functions of type option/result to return an error instead of crashing. Hence unimplemented, panic and unreachable should be avoided.
1313
///
1414
/// **Known problems:** None.
1515
///

0 commit comments

Comments
 (0)