From: Georg Brandl Date: Mon, 8 Mar 2010 16:28:40 +0000 (+0000) Subject: Fix typo. X-Git-Tag: v2.7b1~410 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d22557cf0ab0606bbd83c76c7f9878b57e16a3f8;p=thirdparty%2FPython%2Fcpython.git Fix typo. --- diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 690c12adfdc3..5ef2f8fc3965 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -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.