Skip to content

Commit b65bad9

Browse files
authored
Clarified the attribute which prompts the warning
The example call was lacking clarification of the `#![warn(rustdoc::invalid_codeblock_attributes)]` attribute which generates the specified warning.
1 parent ac923d9 commit b65bad9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/doc/rustdoc/src/lints.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ This lint **warns by default**. It detects code block attributes in
227227
documentation examples that have potentially mis-typed values. For example:
228228

229229
```rust
230+
#![warn(rustdoc::invalid_codeblock_attributes)]
231+
230232
/// Example.
231233
///
232234
/// ```should-panic

0 commit comments

Comments
 (0)