Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/doc/rustdoc/src/lints.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ This lint **warns by default**. This lint detects when [intra-doc links] from pu
For example:

```rust
#![warn(private_intra_doc_links)]

/// [private]
pub fn public() {}
fn private() {}
Expand Down Expand Up @@ -227,6 +229,8 @@ This lint **warns by default**. It detects code block attributes in
documentation examples that have potentially mis-typed values. For example:

```rust
#![warn(rustdoc::invalid_codeblock_attributes)]

/// Example.
///
/// ```should-panic
Expand Down Expand Up @@ -300,6 +304,8 @@ This lint is **warn-by-default**. It detects URLs which are not links.
For example:

```rust
#![warn(bare_urls)]

/// http://example.org
/// [http://example.net]
pub fn foo() {}
Expand Down