Skip to content

Commit 737f62c

Browse files
committed
fix doc
1 parent e0a4988 commit 737f62c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

clippy_lints/src/needless_fn_self_type.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ declare_clippy_lint! {
1313
///
1414
/// **Example:**
1515
/// ```rust
16+
/// enum ValType {
17+
/// I32,
18+
/// I64,
19+
/// F32,
20+
/// F64,
21+
/// }
22+
///
1623
/// impl ValType {
1724
/// pub fn bytes(self: Self) -> usize {
1825
/// match self {
@@ -26,6 +33,13 @@ declare_clippy_lint! {
2633
/// Could be rewritten as
2734
///
2835
/// ```rust
36+
/// enum ValType {
37+
/// I32,
38+
/// I64,
39+
/// F32,
40+
/// F64,
41+
/// }
42+
///
2943
/// impl ValType {
3044
/// pub fn bytes(self) -> usize {
3145
/// match self {

0 commit comments

Comments
 (0)