docs(SIM114): fix typo in example Python code (#2884)

This commit is contained in:
Jeremiah England 2023-02-13 22:23:19 -05:00 committed by GitHub
parent 4dd2032687
commit b8483975a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;