summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-12-25 14:22:23 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-12-25 14:22:23 (GMT)
commit4398c12b472b1e7b653d273500bbcd9988eaec1f (patch)
treeb44706550db833bbd3138dbcdf8717dbd4a803c4 /Doc
parentb079c07f7df2e8640c36d689704b23227412b2d5 (diff)
downloadcpython-4398c12b472b1e7b653d273500bbcd9988eaec1f.zip
cpython-4398c12b472b1e7b653d273500bbcd9988eaec1f.tar.gz
cpython-4398c12b472b1e7b653d273500bbcd9988eaec1f.tar.bz2
Issue #29068: Fixed a typo in PyErr_Fetch example.
Patch by Chi Hsuan Yen.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/exceptions.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index 19cbb3b..c389888 100644
--- a/Doc/c-api/exceptions.rst
+++ b/Doc/c-api/exceptions.rst
@@ -381,7 +381,7 @@ Querying the error indicator
by code that needs to save and restore the error indicator temporarily, e.g.::
{
- PyObject **type, **value, **traceback;
+ PyObject *type, *value, *traceback;
PyErr_Fetch(&type, &value, &traceback);
/* ... code that might produce other errors ... */