]> 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:45:49 +0000 (02:45 -0800)
committerGitHub <noreply@github.com>
Tue, 21 Feb 2023 10:45:49 +0000 (02:45 -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 1563c4dff1386240c809b45dd935df86dd2ba5c6..608e15453be8ad772910585baa44093cb2948434 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*                             |       |