]> granicus.if.org Git - python/commitdiff
Another typo (in the list comprehension example).
authorGuido van Rossum <guido@python.org>
Wed, 6 Sep 2000 23:34:25 +0000 (23:34 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 6 Sep 2000 23:34:25 +0000 (23:34 +0000)
Misc/NEWS

index 4cd443c77099425e1b3fb8edcd8a901fcbd8232f..a16263b869266bebf51a68037f2a7c902eba99fa 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -122,7 +122,7 @@ from another list (or lists).  The simplest form is:
 
     [<expression> for <variable> in <sequence>]
 
-For example, [x**2 for i in range(4)] yields the list [0, 1, 4, 9].
+For example, [i**2 for i in range(4)] yields the list [0, 1, 4, 9].
 This is more efficient than map() with a lambda.
 
 You can also add a condition: