From b65bad99f7e9c7c2d9a19a54ff385146f522082c Mon Sep 17 00:00:00 2001 From: Spencer Imbleau Date: Wed, 12 May 2021 09:02:13 -0400 Subject: [PATCH] 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. --- src/doc/rustdoc/src/lints.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/doc/rustdoc/src/lints.md b/src/doc/rustdoc/src/lints.md index a6626679a7d6..c494eef1b570 100644 --- a/src/doc/rustdoc/src/lints.md +++ b/src/doc/rustdoc/src/lints.md @@ -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