Skip to content

Commit

Permalink
Auto merge of rust-lang#6565 - giraffate:small_fixes_of_doc_in_needle…
Browse files Browse the repository at this point in the history
…ss_question_mark, r=phansch

Small fixes of doc in `needless_question_mark`

changelog: none
  • Loading branch information
bors committed Jan 9, 2021
2 parents ee0598e + aa9adbf commit 583715f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/needless_question_mark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ declare_clippy_lint! {
/// **What it does:**
/// Suggests alternatives for useless applications of `?` in terminating expressions
///
/// **Why is this bad?** There's no reason to use ? to short-circuit when execution of the body will end there anyway.
/// **Why is this bad?** There's no reason to use `?` to short-circuit when execution of the body will end there anyway.
///
/// **Known problems:** None.
///
Expand Down Expand Up @@ -58,7 +58,7 @@ declare_clippy_lint! {
/// ```
pub NEEDLESS_QUESTION_MARK,
complexity,
"Suggest value.inner_option instead of Some(value.inner_option?). The same goes for Result<T, E>."
"Suggest `value.inner_option` instead of `Some(value.inner_option?)`. The same goes for `Result<T, E>`."
}

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

0 comments on commit 583715f

Please sign in to comment.