[doc] Fix typo c-api/exceptions.rst (GH-27847)

Co-authored-by: Tianqing Peng <pengtianqing@yimian.com.cn>
This commit is contained in:
Sunny Bean 2021-08-24 03:17:40 +08:00 committed by GitHub
parent 7b550dfce6
commit dcbf7ff6a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,7 +100,7 @@ For convenience, some of these functions will always return a
This is the most common way to set the error indicator. The first argument This is the most common way to set the error indicator. The first argument
specifies the exception type; it is normally one of the standard exceptions, specifies the exception type; it is normally one of the standard exceptions,
e.g. :c:data:`PyExc_RuntimeError`. You need not increment its reference count. e.g. :c:data:`PyExc_RuntimeError`. You need not increment its reference count.
The second argument is an error message; it is decoded from ``'utf-8``'. The second argument is an error message; it is decoded from ``'utf-8'``.
.. c:function:: void PyErr_SetObject(PyObject *type, PyObject *value) .. c:function:: void PyErr_SetObject(PyObject *type, PyObject *value)