summaryrefslogtreecommitdiff
path: root/Doc/library/parser.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-11-12 16:57:03 +0200
committerGitHub <noreply@github.com>2019-11-12 16:57:03 +0200
commit138ccbb02216ca086047c3139857fb44f3dab1f9 (patch)
tree650ba3584d4d173fe36d757063909a09f239ebf2 /Doc/library/parser.rst
parent9a13a388f202268dd7b771638adbec132449b98b (diff)
downloadcpython-git-138ccbb02216ca086047c3139857fb44f3dab1f9.tar.gz
bpo-38738: Fix formatting of True and False. (GH-17083)
* "Return true/false" is replaced with "Return ``True``/``False``" if the function actually returns a bool. * Fixed formatting of some True and False literals (now in monospace). * Replaced "True/False" with "true/false" if it can be not only bool. * Replaced some 1/0 with True/False if it corresponds the code. * "Returns <bool>" is replaced with "Return <bool>".
Diffstat (limited to 'Doc/library/parser.rst')
-rw-r--r--Doc/library/parser.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/parser.rst b/Doc/library/parser.rst
index e4d6d1d0f5..79fc10d067 100644
--- a/Doc/library/parser.rst
+++ b/Doc/library/parser.rst
@@ -234,8 +234,8 @@ determine if an ST was created from source code via :func:`expr` or
.. index:: builtin: compile
- When *st* represents an ``'eval'`` form, this function returns true, otherwise
- it returns false. This is useful, since code objects normally cannot be queried
+ When *st* represents an ``'eval'`` form, this function returns ``True``, otherwise
+ it returns ``False``. This is useful, since code objects normally cannot be queried
for this information using existing built-in functions. Note that the code
objects created by :func:`compilest` cannot be queried like this either, and
are identical to those created by the built-in :func:`compile` function.