summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-08-29 07:13:28 (GMT)
committerGitHub <noreply@github.com>2022-08-29 07:13:28 (GMT)
commitca7e78dc3a1a61b6e0045f529c7333334bf10999 (patch)
tree0832de6a344eb0174cf1f11f362011e0de8de3da
parent915d12834f5c6f9e10ee50195b98c2a80830119c (diff)
downloadcpython-ca7e78dc3a1a61b6e0045f529c7333334bf10999.zip
cpython-ca7e78dc3a1a61b6e0045f529c7333334bf10999.tar.gz
cpython-ca7e78dc3a1a61b6e0045f529c7333334bf10999.tar.bz2
GH-96359: Fix docs that claim int(0|1) doesn't match False (GH-96361)
(cherry picked from commit 3d3a86ed40626471b2c9e7f1336b228eb0dd0879) Co-authored-by: Jonathan Oberländer <github@l3vi.de>
-rw-r--r--Doc/reference/compound_stmts.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index 93c1720..751c7c2 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -1122,7 +1122,7 @@ subject value:
These classes accept a single positional argument, and the pattern there is matched
against the whole object rather than an attribute. For example ``int(0|1)`` matches
- the value ``0``, but not the values ``0.0`` or ``False``.
+ the value ``0``, but not the value ``0.0``.
In simple terms ``CLS(P1, attr=P2)`` matches only if the following happens: