Skip to content

Commit 90e0289

Browse files
committed
Issue python#28432: Fix first parameter name in PyUnicode_EncodeLocale documentation
Patch by Xiang Zhang.
1 parent 11194f7 commit 90e0289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/c-api/unicode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ system.
793793
Encode a Unicode object to the current locale encoding. The
794794
supported error handlers are ``"strict"`` and ``"surrogateescape"``
795795
(:pep:`383`). The encoder uses ``"strict"`` error handler if
796-
*errors* is ``NULL``. Return a :class:`bytes` object. *str* cannot
796+
*errors* is ``NULL``. Return a :class:`bytes` object. *unicode* cannot
797797
contain embedded null characters.
798798
799799
Use :c:func:`PyUnicode_EncodeFSDefault` to encode a string to

0 commit comments

Comments
 (0)