Skip to content

Commit bb9cdea

Browse files
committed
fixup! Update lint documentation to use markdown headlines
1 parent 16ad708 commit bb9cdea

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

clippy_lints/src/self_named_constructor.rs

+5-6
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ use rustc_lint::{LateContext, LateLintPass};
66
use rustc_session::{declare_lint_pass, declare_tool_lint};
77

88
declare_clippy_lint! {
9-
/// **What it does:** Warns when constructors have the same name as their types.
9+
/// ### What it does
10+
/// Warns when constructors have the same name as their types.
1011
///
11-
/// **Why is this bad?** Repeating the name of the type is redundant.
12-
///
13-
/// **Known problems:** None.
14-
///
15-
/// **Example:**
12+
/// ### Why is this bad?
13+
/// Repeating the name of the type is redundant.
1614
///
15+
/// ### Example
1716
/// ```rust,ignore
1817
/// struct Foo {}
1918
///

0 commit comments

Comments
 (0)