Skip to content

Commit 19c6565

Browse files
committed
docs(lint): add proper newlines
1 parent a7529d1 commit 19c6565

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

crates/xtask-lint-docs/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn main() -> anyhow::Result<()> {
7474
}
7575

7676
fn add_lint(lint: &Lint, buf: &mut String) -> anyhow::Result<()> {
77-
writeln!(buf, "## `{}`", lint.name)?;
77+
writeln!(buf, "## `{}`\n", lint.name)?;
7878
writeln!(buf, "Set to `{}` by default\n", lint.default_level)?;
7979

8080
let src_path = lint_docs_src_path(lint);

src/doc/src/reference/lints.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ These lints are all set to the 'warn' level by default.
99
- [`unknown_lints`](#unknown_lints)
1010

1111
## `blanket_hint_mostly_unused`
12+
1213
Set to `warn` by default
1314

1415
### What it does
@@ -41,6 +42,7 @@ hint-mostly-unused = true
4142

4243

4344
## `unknown_lints`
45+
4446
Set to `warn` by default
4547

4648
### What it does

0 commit comments

Comments
 (0)