From 7545925ffef174a4951f564ca0c80bbb300ed6a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Wed, 18 Mar 2020 01:43:39 +0100 Subject: [PATCH] new_lint.rs: encourage authors to write more detailed code samples in lint descriptions (linted as well as fixed code) changelog: none --- clippy_dev/src/new_lint.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clippy_dev/src/new_lint.rs b/clippy_dev/src/new_lint.rs index a3ccb2758..9e2a4617c 100644 --- a/clippy_dev/src/new_lint.rs +++ b/clippy_dev/src/new_lint.rs @@ -131,7 +131,11 @@ declare_clippy_lint! {{ /// **Example:** /// /// ```rust - /// // example code + /// // example code where clippy issues a warning + /// ``` + /// Use instead: + /// ```rust + /// // example code which does not raise clippy warning /// ``` pub {name_upper}, {category},