diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst index 4222a054a91..b5a9ab1e201 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.