bpo-45346: Keep docs consistent regarding true and false values (GH-28697) (GH-28698)
diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst
index e21151b..d84c841 100644
--- a/Doc/library/ast.rst
+++ b/Doc/library/ast.rst
@@ -1266,7 +1266,7 @@
the pattern matches the subject.
``body`` contains a list of nodes to execute if the pattern matches and
- the result of evaluating the guard expression is truthy.
+ the result of evaluating the guard expression is true.
.. doctest::
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index 25abc1b..41719be 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -585,8 +585,8 @@
#. If the pattern succeeds, the corresponding guard (if present) is evaluated. In
this case all name bindings are guaranteed to have happened.
- * If the guard evaluates as truthy or missing, the ``block`` inside ``case_block`` is
- executed.
+ * If the guard evaluates as true or is missing, the ``block`` inside
+ ``case_block`` is executed.
* Otherwise, the next ``case_block`` is attempted as described above.
@@ -637,10 +637,10 @@
#. If the pattern succeeded, evaluate the ``guard``.
- * If the ``guard`` condition evaluates to "truthy", the case block is
+ * If the ``guard`` condition evaluates as true, the case block is
selected.
- * If the ``guard`` condition evaluates to "falsy", the case block is not
+ * If the ``guard`` condition evaluates as false, the case block is not
selected.
* If the ``guard`` raises an exception during evaluation, the exception