Skip to content

Commit 2b27c82

Browse files
authored
Clarified all attributes which prompt warnings
All calls which trigger rustdoc warnings and are now properly verbose for consistency. This uses the attribute in the examples which provides the user with more context.
1 parent b65bad9 commit 2b27c82

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/doc/rustdoc/src/lints.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ This lint **warns by default**. This lint detects when [intra-doc links] from pu
7070
For example:
7171

7272
```rust
73+
#![warn(private_intra_doc_links)]
74+
7375
/// [private]
7476
pub fn public() {}
7577
fn private() {}
@@ -302,6 +304,8 @@ This lint is **warn-by-default**. It detects URLs which are not links.
302304
For example:
303305

304306
```rust
307+
#![warn(bare_urls)]
308+
305309
/// http://example.org
306310
/// [http://example.net]
307311
pub fn foo() {}

0 commit comments

Comments
 (0)