]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] Fix typo c-api/exceptions.rst (GH-27847) (GH-27919)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 23 Aug 2021 20:09:52 +0000 (13:09 -0700)
committerGitHub <noreply@github.com>
Mon, 23 Aug 2021 20:09:52 +0000 (22:09 +0200)
Co-authored-by: Tianqing Peng <pengtianqing@yimian.com.cn>
(cherry picked from commit dcbf7ff6a700b63e637a0445d68866670a398024)

Co-authored-by: Sunny Bean <ptq008@gmail.com>
Doc/c-api/exceptions.rst

index 247b6d68eceae958bfa9d06e115a6813a7db0739..614eb24525541802a7c80c638412d0d46eea62f9 100644 (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
    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)