diff options
| author | Christoph Beberweil <christoph.beberweil@protonmail.com> | 2023-11-24 17:47:31 +0100 |
|---|---|---|
| committer | Christoph Beberweil <christoph.beberweil@protonmail.com> | 2023-11-24 17:47:31 +0100 |
| commit | f9c6335a0f1a2a0fb17a67d0aa72eae63bbd8a3f (patch) | |
| tree | bba88a8ab28f70393f2891f430aff1d6d584bb72 /clippy_lints | |
| parent | bce869f0c05ffe2ce341e79e2f4cf9c0a06078c1 (diff) | |
feat: 7125 code snippets are wrapped in backticks
Diffstat (limited to 'clippy_lints')
| -rw-r--r-- | clippy_lints/src/loops/single_element_loop.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/loops/single_element_loop.rs b/clippy_lints/src/loops/single_element_loop.rs index b5786231a1a..4773a1454b7 100644 --- a/clippy_lints/src/loops/single_element_loop.rs +++ b/clippy_lints/src/loops/single_element_loop.rs @@ -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, |
