summaryrefslogtreecommitdiffstats
path: root/Doc/faq
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-02-09 11:31:19 (GMT)
committerGitHub <noreply@github.com>2018-02-09 11:31:19 (GMT)
commit5bb0005f9ff768ac443924b4bb26c3818ce8dc5a (patch)
treef9a5f2ba1d855d62955e649e6054fc515f47ed70 /Doc/faq
parent23cdbfa744f0ec0e9e7575d378df4cb758691cd3 (diff)
downloadcpython-5bb0005f9ff768ac443924b4bb26c3818ce8dc5a.zip
cpython-5bb0005f9ff768ac443924b4bb26c3818ce8dc5a.tar.gz
cpython-5bb0005f9ff768ac443924b4bb26c3818ce8dc5a.tar.bz2
Make formatting of some return codes conforming to the general style. (#5587)
Diffstat (limited to 'Doc/faq')
-rw-r--r--Doc/faq/extending.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/faq/extending.rst b/Doc/faq/extending.rst
index 88996e4..fd04a83 100644
--- a/Doc/faq/extending.rst
+++ b/Doc/faq/extending.rst
@@ -62,7 +62,7 @@ How can I execute arbitrary Python statements from C?
The highest-level function to do this is :c:func:`PyRun_SimpleString` which takes
a single string argument to be executed in the context of the module
-``__main__`` and returns 0 for success and -1 when an exception occurred
+``__main__`` and returns ``0`` for success and ``-1`` when an exception occurred
(including ``SyntaxError``). If you want more control, use
:c:func:`PyRun_String`; see the source for :c:func:`PyRun_SimpleString` in
``Python/pythonrun.c``.