Skip to content

Commit 6178dda

Browse files
committed
misname-getters: Fix documentation
1 parent d9993cb commit 6178dda

File tree

1 file changed

+3
-2
lines changed
  • clippy_lints/src/functions

1 file changed

+3
-2
lines changed

clippy_lints/src/functions/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ declare_clippy_lint! {
270270
/// It is most likely that such a method is a bug caused by a typo or by copy-pasting.
271271
///
272272
/// ### Example
273+
273274
/// ```rust
274275
/// struct A {
275276
/// a: String,
@@ -281,7 +282,7 @@ declare_clippy_lint! {
281282
/// &self.b
282283
/// }
283284
/// }
284-
/// // example code where clippy issues a warning
285+
285286
/// ```
286287
/// Use instead:
287288
/// ```rust
@@ -296,7 +297,7 @@ declare_clippy_lint! {
296297
/// }
297298
/// }
298299
/// ```
299-
#[clippy::version = "1.66.0"]
300+
#[clippy::version = "1.67.0"]
300301
pub MISNAMED_GETTERS,
301302
suspicious,
302303
"getter method returning the wrong field"

0 commit comments

Comments
 (0)