Skip to content

Commit 60a206f

Browse files
committed
The wrong variable is checked and appended in this example code block.
1 parent 1b082fd commit 60a206f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/writing/style.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ operations on lists using a different concise syntax.
219219
a = [3, 4, 5]
220220
b = []
221221
for i in a:
222-
if a > 4:
223-
b.append(a)
222+
if i > 4:
223+
b.append(i)
224224
225225
**Good**:
226226

0 commit comments

Comments
 (0)