Skip to content

Commit 817d0b4

Browse files
authored
Fix =/== error in ManualDictLookup (#3117)
1 parent ffd8e95 commit 817d0b4

File tree

2 files changed

+2
-28
lines changed

2 files changed

+2
-28
lines changed

crates/ruff/src/rules/flake8_simplify/rules/ast_if.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ define_violation!(
9191
///
9292
/// ### Example
9393
/// ```python
94-
/// if x = 1:
94+
/// if x == 1:
9595
/// return "Hello"
96-
/// elif x = 2:
96+
/// elif x == 2:
9797
/// return "Goodbye"
9898
/// else:
9999
/// return "Goodnight"

docs/rules/if-to-dict.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)