Skip to content

Commit

Permalink
fix example with hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
promptkp committed Aug 28, 2024
1 parent 564bfe2 commit 51d98e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clippy_lints/src/stacked_if_match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ declare_clippy_lint! {
///
/// ### Example
/// ```no_run
/// # let (a, b, c, d, e, f) = (1, 2, 3, 4, 5, 6);
/// if if a == b {
/// c == d
/// } else {
Expand All @@ -28,6 +29,7 @@ declare_clippy_lint! {
///
/// Use instead:
/// ```no_run
/// # let (a, b, c, d, e, f) = (1, 2, 3, 4, 5, 6);
/// let result = if a == b {
/// c == d
/// } else {
Expand Down

0 comments on commit 51d98e5

Please sign in to comment.