about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKagami Sascha Rosylight <saschanaz@outlook.com>2022-10-24 18:00:41 +0200
committerGitHub <noreply@github.com>2022-10-24 18:00:41 +0200
commit6b5f2753f75d5f9f10eee9252a1346a72f1c9ee2 (patch)
treeb214f7899b303d57b619bdb0cdf38fe8c4f66abc
parent3ff010bdbc0b138e8761cedcec4d6174b2e7ab61 (diff)
Update let_underscore.rs
-rw-r--r--compiler/rustc_lint/src/let_underscore.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/let_underscore.rs b/compiler/rustc_lint/src/let_underscore.rs
index c59f56756c6..11ceb4e22ae 100644
--- a/compiler/rustc_lint/src/let_underscore.rs
+++ b/compiler/rustc_lint/src/let_underscore.rs
@@ -11,7 +11,7 @@ declare_lint! {
     /// scope.
     ///
     /// ### Example
-    /// ```rust,compile_fail
+    /// ```
     /// struct SomeStruct;
     /// impl Drop for SomeStruct {
     ///     fn drop(&mut self) {
@@ -56,7 +56,7 @@ declare_lint! {
     /// of at end of scope, which is typically incorrect.
     ///
     /// ### Example
-    /// ```compile_fail
+    /// ```rust,compile_fail
     /// use std::sync::{Arc, Mutex};
     /// use std::thread;
     /// let data = Arc::new(Mutex::new(0));