Skip to content

Commit

Permalink
fix a doctest
Browse files Browse the repository at this point in the history
Signed-off-by: TennyZhuang <zty0826@gmail.com>
  • Loading branch information
TennyZhuang committed Oct 16, 2022
1 parent abd5db3 commit 86e88da
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions clippy_lints/src/partial_pub_fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ declare_clippy_lint! {
/// ### Example
/// ```rust
/// pub struct Color {
/// pub r,
/// pub g,
/// b,
/// pub r: u8,
/// pub g: u8,
/// b: u8,
/// }
/// ```
/// Use instead:
/// ```rust
/// pub struct Color {
/// pub r,
/// pub g,
/// pub b,
/// pub r: u8,
/// pub g: u8,
/// pub b: u8,
/// }
/// ```
#[clippy::version = "1.66.0"]
Expand Down

0 comments on commit 86e88da

Please sign in to comment.