]> granicus.if.org Git - python/commitdiff
Fix typo.
authorGeorg Brandl <georg@python.org>
Mon, 8 Mar 2010 16:28:40 +0000 (16:28 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 8 Mar 2010 16:28:40 +0000 (16:28 +0000)
Doc/reference/expressions.rst

index 690c12adfdc3452dceea5fd9d6d2c822c6ba4d3a..5ef2f8fc39656bf53d0804a64bc4f7c527987918 100644 (file)
@@ -1239,7 +1239,7 @@ Conditional Expressions
 Conditional expressions (sometimes called a "ternary operator") have the lowest
 priority of all Python operations.
 
-The expression ``x if C else y`` first evaluates the condition, *C* (*not* *a*);
+The expression ``x if C else y`` first evaluates the condition, *C* (*not* *x*);
 if *C* is true, *x* is evaluated and its value is returned; otherwise, *y* is
 evaluated and its value is returned.