From: Berker Peksag Date: Sun, 16 Oct 2016 21:45:56 +0000 (+0300) Subject: Issue #28432: Fix first parameter name in PyUnicode_EncodeLocale documentation X-Git-Tag: v3.6.0b3~116^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90e028970a3217bfbd92c3db8591ce2b0c307c14;p=python Issue #28432: Fix first parameter name in PyUnicode_EncodeLocale documentation Patch by Xiang Zhang. --- diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst index 3f6a604c61..12a861ed82 100644 --- a/Doc/c-api/unicode.rst +++ b/Doc/c-api/unicode.rst @@ -793,7 +793,7 @@ system. Encode a Unicode object to the current locale encoding. The supported error handlers are ``"strict"`` and ``"surrogateescape"`` (:pep:`383`). The encoder uses ``"strict"`` error handler if - *errors* is ``NULL``. Return a :class:`bytes` object. *str* cannot + *errors* is ``NULL``. Return a :class:`bytes` object. *unicode* cannot contain embedded null characters. Use :c:func:`PyUnicode_EncodeFSDefault` to encode a string to