Skip to content

Commit

Permalink
docs(SIM114): fix typo in example Python code (#2884)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremiah-England authored and charliermarsh committed Feb 14, 2023
1 parent 8223c0e commit 592c82a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/ruff/src/rules/flake8_simplify/rules/ast_if.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ define_violation!(
///
/// ### Example
/// ```python
/// if x = 1:
/// if x == 1:
/// print("Hello")
/// elif x = 2:
/// elif x == 2:
/// print("Hello")
/// ```
///
/// Use instead:
/// ```python
/// if x = 1 or x = 2:
/// if x == 1 or x == 2:
/// print("Hello")
/// ```
pub struct IfWithSameArms;
Expand Down

0 comments on commit 592c82a

Please sign in to comment.