about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/ui/sliced_string_as_bytes.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/sliced_string_as_bytes.stderr b/tests/ui/sliced_string_as_bytes.stderr
index 47c928d1c1e..1342f4c01a4 100644
--- a/tests/ui/sliced_string_as_bytes.stderr
+++ b/tests/ui/sliced_string_as_bytes.stderr
@@ -4,7 +4,7 @@ error: calling `as_bytes` after slicing a string
 LL |     let bytes = s[1..5].as_bytes();
    |                 ^^^^^^^^^^^^^^^^^^ help: try: `&s.as_bytes()[1..5]`
    |
-   = note: `-D clippy::slice-as-bytes` implied by `-D warnings`
+   = note: `-D clippy::sliced-string-as-bytes` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::sliced_string_as_bytes)]`
 
 error: calling `as_bytes` after slicing a string