diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2021-04-30 21:28:32 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2021-05-17 21:31:04 -0400 |
| commit | b885d81a4a59fa9282ecb088e6eac8e30cb4a9bf (patch) | |
| tree | f28cf7b0155420ede4153c694a589de4a122082c /src/doc/rustdoc | |
| parent | 4120f7561c7df15e099386adcf262f1e2adbc2de (diff) | |
| download | rust-b885d81a4a59fa9282ecb088e6eac8e30cb4a9bf.tar.gz rust-b885d81a4a59fa9282ecb088e6eac8e30cb4a9bf.zip | |
Rename INVALID_RUST_CODEBLOCK{,S}
Diffstat (limited to 'src/doc/rustdoc')
| -rw-r--r-- | src/doc/rustdoc/src/lints.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustdoc/src/lints.md b/src/doc/rustdoc/src/lints.md index 46c4a8a41ac..9f1e1a5b88b 100644 --- a/src/doc/rustdoc/src/lints.md +++ b/src/doc/rustdoc/src/lints.md @@ -294,7 +294,7 @@ warning: unclosed HTML tag `h1` warning: 2 warnings emitted ``` -## invalid_rust_codeblock +## invalid_rust_codeblocks This lint **warns by default**. It detects Rust code blocks in documentation examples that are invalid (e.g. empty, not parsable as Rust). For example: @@ -322,7 +322,7 @@ warning: Rust code block is empty 4 | | /// ``` | |_______^ | -= note: `#[warn(rustdoc::invalid_rust_codeblock)]` on by default += note: `#[warn(rustdoc::invalid_rust_codeblocks)]` on by default warning: Rust code block is empty --> src/lib.rs:8:5 |
