]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100556: Improve clarity of `or` docs (#100589)
authorram vikram singh <ramvikrams243@gmail.com>
Tue, 21 Feb 2023 10:34:56 +0000 (16:04 +0530)
committerGitHub <noreply@github.com>
Tue, 21 Feb 2023 10:34:56 +0000 (11:34 +0100)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Doc/library/stdtypes.rst

index 98bda6ded30f795ba4ff35e2e3caff98dbd3d67b..41947d66c1513461dc8284066c009b6e019ee209 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*                             |       |