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.
This commit is contained in:
parent
ac923d94f8
commit
b65bad99f7
1 changed files with 2 additions and 0 deletions
|
|
@ -227,6 +227,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue