]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] Fix typo c-api/exceptions.rst (GH-27847)
authorSunny Bean <ptq008@gmail.com>
Mon, 23 Aug 2021 19:17:40 +0000 (03:17 +0800)
committerGitHub <noreply@github.com>
Mon, 23 Aug 2021 19:17:40 +0000 (21:17 +0200)
Co-authored-by: Tianqing Peng <pengtianqing@yimian.com.cn>
Doc/c-api/exceptions.rst

index 525a773b7c768f29b3d26cdf58a0e86eee58a0c4..5d90248f85a5d45ad92177cc1b4c3cf38af65ce2 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)