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:
Spencer Imbleau 2021-05-12 09:02:13 -04:00 committed by GitHub
parent ac923d94f8
commit b65bad99f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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