From 6178ddaded7f73ba413475ea27ac98336069cb11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Sun, 20 Nov 2022 13:46:30 +0100 Subject: [PATCH] misname-getters: Fix documentation --- clippy_lints/src/functions/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/functions/mod.rs b/clippy_lints/src/functions/mod.rs index 3478fdd8624a..91e6ffe64479 100644 --- a/clippy_lints/src/functions/mod.rs +++ b/clippy_lints/src/functions/mod.rs @@ -270,6 +270,7 @@ declare_clippy_lint! { /// It is most likely that such a method is a bug caused by a typo or by copy-pasting. /// /// ### Example + /// ```rust /// struct A { /// a: String, @@ -281,7 +282,7 @@ declare_clippy_lint! { /// &self.b /// } /// } - /// // example code where clippy issues a warning + /// ``` /// Use instead: /// ```rust @@ -296,7 +297,7 @@ declare_clippy_lint! { /// } /// } /// ``` - #[clippy::version = "1.66.0"] + #[clippy::version = "1.67.0"] pub MISNAMED_GETTERS, suspicious, "getter method returning the wrong field"