about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkoka <koka.code@gmail.com>2022-11-14 22:55:50 +0900
committerkoka <koka.code@gmail.com>2022-11-14 22:55:50 +0900
commita9e4176bc868bd0d5b1f9a4dcff5aed5c22ad3f8 (patch)
tree06fe6dc7f12a217abbbad621710573e3367398ba
parent96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef (diff)
downloadrust-a9e4176bc868bd0d5b1f9a4dcff5aed5c22ad3f8.tar.gz
rust-a9e4176bc868bd0d5b1f9a4dcff5aed5c22ad3f8.zip
Specify language of code comment to generate document
-rw-r--r--compiler/rustc_lint/src/let_underscore.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/let_underscore.rs b/compiler/rustc_lint/src/let_underscore.rs
index 78f355ec3d0..c8939256bbb 100644
--- a/compiler/rustc_lint/src/let_underscore.rs
+++ b/compiler/rustc_lint/src/let_underscore.rs
@@ -11,7 +11,8 @@ declare_lint! {
     /// scope.
     ///
     /// ### Example
-    /// ```
+    ///
+    /// ```rust
     /// struct SomeStruct;
     /// impl Drop for SomeStruct {
     ///     fn drop(&mut self) {