summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorSunny Bean <ptq008@gmail.com>2021-08-23 19:17:40 (GMT)
committerGitHub <noreply@github.com>2021-08-23 19:17:40 (GMT)
commitdcbf7ff6a700b63e637a0445d68866670a398024 (patch)
tree762a171766040cf0fdad2fa7a706cb7200f683b8 /Doc/c-api
parent7b550dfce64bd134c5604fd1f2d4c43ae2b669e4 (diff)
downloadcpython-dcbf7ff6a700b63e637a0445d68866670a398024.zip
cpython-dcbf7ff6a700b63e637a0445d68866670a398024.tar.gz
cpython-dcbf7ff6a700b63e637a0445d68866670a398024.tar.bz2
[doc] Fix typo c-api/exceptions.rst (GH-27847)
Co-authored-by: Tianqing Peng <pengtianqing@yimian.com.cn>
Diffstat (limited to 'Doc/c-api')
-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 525a773..5d90248 100644
--- a/Doc/c-api/exceptions.rst
+++ b/Doc/c-api/exceptions.rst
@@ -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
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.
- 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)