From 60a206f20f2eab2f405e16e48ce6ae0a606b034a Mon Sep 17 00:00:00 2001 From: Mark Simpson Date: Tue, 3 Apr 2012 00:05:24 +1200 Subject: [PATCH] The wrong variable is checked and appended in this example code block. --- docs/writing/style.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/writing/style.rst b/docs/writing/style.rst index 6ca8f221d..79223e04a 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -219,8 +219,8 @@ operations on lists using a different concise syntax. a = [3, 4, 5] b = [] for i in a: - if a > 4: - b.append(a) + if i > 4: + b.append(i) **Good**: