Skip to content

Commit 583715f

Browse files
committed
Auto merge of rust-lang#6565 - giraffate:small_fixes_of_doc_in_needless_question_mark, r=phansch
Small fixes of doc in `needless_question_mark` changelog: none
2 parents ee0598e + aa9adbf commit 583715f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/needless_question_mark.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ declare_clippy_lint! {
1414
/// **What it does:**
1515
/// Suggests alternatives for useless applications of `?` in terminating expressions
1616
///
17-
/// **Why is this bad?** There's no reason to use ? to short-circuit when execution of the body will end there anyway.
17+
/// **Why is this bad?** There's no reason to use `?` to short-circuit when execution of the body will end there anyway.
1818
///
1919
/// **Known problems:** None.
2020
///
@@ -58,7 +58,7 @@ declare_clippy_lint! {
5858
/// ```
5959
pub NEEDLESS_QUESTION_MARK,
6060
complexity,
61-
"Suggest value.inner_option instead of Some(value.inner_option?). The same goes for Result<T, E>."
61+
"Suggest `value.inner_option` instead of `Some(value.inner_option?)`. The same goes for `Result<T, E>`."
6262
}
6363

6464
const NEEDLESS_QUESTION_MARK_RESULT_MSRV: RustcVersion = RustcVersion::new(1, 13, 0);

0 commit comments

Comments
 (0)