about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlucarlig <luca.carlig@huawei.com>2024-02-25 17:51:58 +0400
committerlucarlig <luca.carlig@huawei.com>2024-02-25 17:51:58 +0400
commit97e4c57f24d82d2bd938496b4a1af10372714ef7 (patch)
tree3efa933db72b4424ef972002f6295f8d398a147b
parentee0cbeaa77dd2c1c25d2da3df35df837efc6cd66 (diff)
downloadrust-97e4c57f24d82d2bd938496b4a1af10372714ef7.tar.gz
rust-97e4c57f24d82d2bd938496b4a1af10372714ef7.zip
fix lint doc
-rw-r--r--clippy_lints/src/doc/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/clippy_lints/src/doc/mod.rs b/clippy_lints/src/doc/mod.rs
index 7b085a36ea5..2984c5c1519 100644
--- a/clippy_lints/src/doc/mod.rs
+++ b/clippy_lints/src/doc/mod.rs
@@ -345,13 +345,14 @@ declare_clippy_lint! {
     /// ### Why is this bad?
     /// It is unlikely that there is any reason to have empty documentation for an item
     /// ### Example
-    /// ```rust
+    /// ```rs
     /// ///
     /// fn returns_true() -> bool {
     ///     true
     /// }
+    /// ```
     /// Use instead:
-    /// ```rust
+    /// ```rs
     /// fn returns_true() -> bool {
     ///     true
     /// }