feat: 7125 code snippets are wrapped in backticks
This commit is contained in:
parent
bce869f0c0
commit
f9c6335a0f
2 changed files with 5 additions and 5 deletions
|
|
@ -95,7 +95,7 @@ pub(super) fn check<'tcx>(
|
|||
cx,
|
||||
SINGLE_ELEMENT_LOOP,
|
||||
arg.span,
|
||||
format!("this loops only once with {pat_snip} being {range_expr}").as_str(),
|
||||
format!("this loops only once with `{pat_snip}` being `{range_expr}`").as_str(),
|
||||
"did you mean to iterate over the range instead?",
|
||||
sugg.to_string(),
|
||||
Applicability::Unspecified,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue