Skip to content

Commit

Permalink
fixup! Update lint documentation to use markdown headlines
Browse files Browse the repository at this point in the history
  • Loading branch information
xFrednet committed Jul 24, 2021
1 parent 0bdd6f7 commit 5eeff3c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions clippy_lints/src/self_named_constructor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ use rustc_lint::{LateContext, LateLintPass};
use rustc_session::{declare_lint_pass, declare_tool_lint};

declare_clippy_lint! {
/// **What it does:** Warns when constructors have the same name as their types.
/// ### What it does
/// Warns when constructors have the same name as their types.
///
/// **Why is this bad?** Repeating the name of the type is redundant.
///
/// **Known problems:** None.
///
/// **Example:**
/// ### Why is this bad?
/// Repeating the name of the type is redundant.
///
/// ### Example
/// ```rust,ignore
/// struct Foo {}
///
Expand Down

0 comments on commit 5eeff3c

Please sign in to comment.