diff options
| author | bors <bors@rust-lang.org> | 2021-01-09 15:28:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-01-09 15:28:10 +0000 |
| commit | 583715f583bd28ec759a5d0737b4ec400f0814cd (patch) | |
| tree | c986e70ff17b95473ab2ea0ca118d6ab506061fd | |
| parent | ee0598e254c89c92a34fd7fcc7567933f30e1006 (diff) | |
| parent | aa9adbf244624a31d3fe7bfbd34c57377fafa682 (diff) | |
| download | rust-583715f583bd28ec759a5d0737b4ec400f0814cd.tar.gz rust-583715f583bd28ec759a5d0737b4ec400f0814cd.zip | |
Auto merge of #6565 - giraffate:small_fixes_of_doc_in_needless_question_mark, r=phansch
Small fixes of doc in `needless_question_mark` changelog: none
| -rw-r--r-- | clippy_lints/src/needless_question_mark.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/needless_question_mark.rs b/clippy_lints/src/needless_question_mark.rs index 783e6b716d4..9e9b79ee1cf 100644 --- a/clippy_lints/src/needless_question_mark.rs +++ b/clippy_lints/src/needless_question_mark.rs @@ -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. /// @@ -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); |
