about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2020-10-08 04:54:17 -0700
committerDavid Tolnay <dtolnay@gmail.com>2020-10-08 04:54:17 -0700
commitc81bea45f480d9d5a785778c944a3ad3daf30d27 (patch)
tree5393d4f49675756f91d9866c72ab068dc04bb4dd
parent3a6f59ecae90892c3162df95d9633c4263ab91fa (diff)
downloadrust-c81bea45f480d9d5a785778c944a3ad3daf30d27.tar.gz
rust-c81bea45f480d9d5a785778c944a3ad3daf30d27.zip
Make clippy_lints's doc tests succeed
-rw-r--r--clippy_lints/src/strings.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/strings.rs b/clippy_lints/src/strings.rs
index 415c07b2261..3783bd78de2 100644
--- a/clippy_lints/src/strings.rs
+++ b/clippy_lints/src/strings.rs
@@ -75,7 +75,7 @@ declare_clippy_lint! {
     /// while the latter is `&[u8; 3]`. That means in general they will have a
     /// different set of methods and different trait implementations.
     ///
-    /// ```rust
+    /// ```compile_fail
     /// fn f(v: Vec<u8>) {}
     ///
     /// f("...".as_bytes().to_owned()); // works