diff options
author | ram vikram singh <ramvikrams243@gmail.com> | 2023-02-21 10:34:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-21 10:34:56 (GMT) |
commit | b40dd71241f092d90c192ebff5d58cbd7e84dc52 (patch) | |
tree | 173c4d6d47d998a1414b3584da7b9d8c2840cd06 | |
parent | 350ba7c07f8983537883e093c5c623287a2a22e5 (diff) | |
download | cpython-b40dd71241f092d90c192ebff5d58cbd7e84dc52.zip cpython-b40dd71241f092d90c192ebff5d58cbd7e84dc52.tar.gz cpython-b40dd71241f092d90c192ebff5d58cbd7e84dc52.tar.bz2 |
gh-100556: Improve clarity of `or` docs (#100589)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
-rw-r--r-- | Doc/library/stdtypes.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 98bda6d..41947d6 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* | | |