Skip to content

Commit 86e88da

Browse files
committed
fix a doctest
Signed-off-by: TennyZhuang <zty0826@gmail.com>
1 parent abd5db3 commit 86e88da

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

clippy_lints/src/partial_pub_fields.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ declare_clippy_lint! {
1818
/// ### Example
1919
/// ```rust
2020
/// pub struct Color {
21-
/// pub r,
22-
/// pub g,
23-
/// b,
21+
/// pub r: u8,
22+
/// pub g: u8,
23+
/// b: u8,
2424
/// }
2525
/// ```
2626
/// Use instead:
2727
/// ```rust
2828
/// pub struct Color {
29-
/// pub r,
30-
/// pub g,
31-
/// pub b,
29+
/// pub r: u8,
30+
/// pub g: u8,
31+
/// pub b: u8,
3232
/// }
3333
/// ```
3434
#[clippy::version = "1.66.0"]

0 commit comments

Comments
 (0)