From b8483975a4bcb3854fac07ea4d16f74ea68d372a Mon Sep 17 00:00:00 2001 From: Jeremiah England <34973839+Jeremiah-England@users.noreply.github.com> Date: Mon, 13 Feb 2023 22:23:19 -0500 Subject: [PATCH] docs(SIM114): fix typo in example Python code (#2884) --- crates/ruff/src/rules/flake8_simplify/rules/ast_if.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ruff/src/rules/flake8_simplify/rules/ast_if.rs b/crates/ruff/src/rules/flake8_simplify/rules/ast_if.rs index e1a9d2b6b1147..90f3c7ba6355a 100644 --- a/crates/ruff/src/rules/flake8_simplify/rules/ast_if.rs +++ b/crates/ruff/src/rules/flake8_simplify/rules/ast_if.rs @@ -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;