summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Doc/c-api/unicode.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index 4222a054a9..b5a9ab1e20 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -408,7 +408,7 @@ used, passsing :func:PyUnicode_FSConverter as the conversion function:
.. cfunction:: PyObject* PyUnicode_EncodeFSDefault(PyObject *unicode)
Encode a Unicode object to :cdata:`Py_FileSystemDefaultEncoding` with the
- ``'surrogateescape'`` error handler, return a :func:`bytes` object.
+ ``'surrogateescape'`` error handler, and return :class:`bytes`.
If :cdata:`Py_FileSystemDefaultEncoding` is not set, fall back to UTF-8.