]> git.lizzy.rs Git - rust.git/commitdiff
Update let_underscore.rs
authorKagami Sascha Rosylight <saschanaz@outlook.com>
Mon, 24 Oct 2022 16:00:41 +0000 (18:00 +0200)
committerGitHub <noreply@github.com>
Mon, 24 Oct 2022 16:00:41 +0000 (18:00 +0200)
compiler/rustc_lint/src/let_underscore.rs

index c59f56756c6b716f9d5255bb28e3717038e39365..11ceb4e22ae8331fe78a28037584e53bbf225121 100644 (file)
@@ -11,7 +11,7 @@
     /// scope.
     ///
     /// ### Example
-    /// ```rust,compile_fail
+    /// ```
     /// struct SomeStruct;
     /// impl Drop for SomeStruct {
     ///     fn drop(&mut self) {
@@ -56,7 +56,7 @@
     /// 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));