summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-02-21 10:43:48 (GMT)
committerGitHub <noreply@github.com>2023-02-21 10:43:48 (GMT)
commit444ec749452b67318404ae0d6007e62298b012fc (patch)
tree189fdacbc04468d798255bc7e90a6ff3f1ff92ef /Doc
parent2d9f8d4d3882968dbc8fb2bceeb51d4c31fcd7b1 (diff)
downloadcpython-444ec749452b67318404ae0d6007e62298b012fc.zip
cpython-444ec749452b67318404ae0d6007e62298b012fc.tar.gz
cpython-444ec749452b67318404ae0d6007e62298b012fc.tar.bz2
gh-100556: Improve clarity of `or` docs (GH-100589)
(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>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 7cdde53..59d6445 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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* | |