diff -r 8bb426d386a5 Doc/c-api/unicode.rst --- a/Doc/c-api/unicode.rst Wed Oct 12 20:18:33 2016 +0200 +++ b/Doc/c-api/unicode.rst Fri Oct 14 01:01:05 2016 +0800 @@ -787,7 +787,7 @@ 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