Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 4e94d22

Browse files
committed
nit: change placeholders
1 parent 5855e0a commit 4e94d22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/methods/sliced_string_as_bytes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, recv: &Expr<'_>) {
1414
&& (ty.is_str() || is_type_lang_item(cx, ty, LangItem::String))
1515
{
1616
let mut applicability = Applicability::MaybeIncorrect;
17-
let stringish = snippet_with_applicability(cx, indexed.span, "..", &mut applicability);
18-
let range = snippet_with_applicability(cx, index.span, "..", &mut applicability);
17+
let stringish = snippet_with_applicability(cx, indexed.span, "_", &mut applicability);
18+
let range = snippet_with_applicability(cx, index.span, "_", &mut applicability);
1919
span_lint_and_sugg(
2020
cx,
2121
SLICED_STRING_AS_BYTES,

0 commit comments

Comments
 (0)