@@ -38,7 +38,7 @@ declare_clippy_lint! {
3838 /// ```
3939 pub IFS_SAME_COND ,
4040 correctness,
41- "consecutive `ifs` with the same condition"
41+ "consecutive `if`s with the same condition"
4242}
4343
4444declare_clippy_lint ! {
@@ -85,7 +85,7 @@ declare_clippy_lint! {
8585 /// ```
8686 pub SAME_FUNCTIONS_IN_IF_CONDITION ,
8787 pedantic,
88- "consecutive `ifs` with the same function call"
88+ "consecutive `if`s with the same function call"
8989}
9090
9191declare_clippy_lint ! {
@@ -106,7 +106,7 @@ declare_clippy_lint! {
106106 /// ```
107107 pub IF_SAME_THEN_ELSE ,
108108 correctness,
109- "if with the same * then* and * else* blocks"
109+ "`if` with the same ` then` and ` else` blocks"
110110}
111111
112112declare_clippy_lint ! {
@@ -206,7 +206,7 @@ fn lint_same_cond(cx: &LateContext<'_, '_>, conds: &[&Expr<'_>]) {
206206 cx,
207207 IFS_SAME_COND ,
208208 j. span ,
209- "this `if` has the same condition as a previous if " ,
209+ "this `if` has the same condition as a previous `if` " ,
210210 i. span ,
211211 "same as this" ,
212212 ) ;
@@ -234,7 +234,7 @@ fn lint_same_fns_in_if_cond(cx: &LateContext<'_, '_>, conds: &[&Expr<'_>]) {
234234 cx,
235235 SAME_FUNCTIONS_IN_IF_CONDITION ,
236236 j. span ,
237- "this `if` has the same function call as a previous if " ,
237+ "this `if` has the same function call as a previous `if` " ,
238238 i. span ,
239239 "same as this" ,
240240 ) ;
@@ -300,7 +300,7 @@ fn lint_match_arms<'tcx>(cx: &LateContext<'_, 'tcx>, expr: &Expr<'_>) {
300300 db. span_note (
301301 i. body . span ,
302302 & format ! (
303- "`{}` has the same arm body as the `_` wildcard, consider removing it` " ,
303+ "`{}` has the same arm body as the `_` wildcard, consider removing it" ,
304304 lhs
305305 ) ,
306306 ) ;
0 commit comments