]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100556: Improve clarity of `or` docs (GH-100589)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 21 Feb 2023 10:43:48 +0000 (02:43 -0800)
committerGitHub <noreply@github.com>
Tue, 21 Feb 2023 10:43:48 +0000 (02:43 -0800)
(cherry picked from commit b40dd71241f092d90c192ebff5d58cbd7e84dc52)

Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Doc/library/stdtypes.rst

index 7cdde5334e24a1be412070ec04de115c76f26abb..59d64457edcd2d7385fe723498d5e4ee9b5ff5b3 100644 (file)
@@ -84,8 +84,8 @@ These are the Boolean operations, ordered by ascending priority:
 +-------------+---------------------------------+-------+
 | Operation   | Result                          | Notes |
 +=============+=================================+=======+
-| ``x or y``  | if *x* is false, then *y*, else | \(1)  |
-|             | *x*                             |       |
+| ``x or y``  | if *x* is true, then *x*, else  | \(1)  |
+|             | *y*                             |       |
 +-------------+---------------------------------+-------+
 | ``x and y`` | if *x* is false, then *x*, else | \(2)  |
 |             | *y*                             |       |