Skip to content

Commit c8ba5f1

Browse files
Fix statements in unicode.rst
1 parent f621ba1 commit c8ba5f1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/c-api/unicode.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ Built-in Codecs
10671067
Python provides a set of built-in codecs which are written in C for speed. All of
10681068
these codecs are directly usable via the following functions.
10691069
1070-
Many of the following APIs take two arguments encoding and errors, and they
1070+
Many of the following APIs take two arguments, encoding and errors, and they
10711071
have the same semantics as the ones of the built-in :func:`str` string object
10721072
constructor.
10731073
@@ -1668,9 +1668,9 @@ They all return ``NULL`` or ``-1`` if an exception occurs.
16681668
16691669
.. c:function:: int PyUnicode_EqualToUTF8AndSize(PyObject *unicode, const char *string, Py_ssize_t size)
16701670
1671-
Compare a Unicode object with a char buffer which is interpreted as
1672-
being UTF-8 or ASCII encoded and return true (``1``) if they are equal,
1673-
or false (``0``) otherwise.
1671+
Compare a Unicode object, *unicode*, with a char buffer *string* of length *size*,
1672+
which is interpreted as being UTF-8 or ASCII encoded and return true (``1``) if they
1673+
are equal, or false (``0``) otherwise.
16741674
If the Unicode object contains surrogate code points
16751675
(``U+D800`` - ``U+DFFF``) or the C string is not valid UTF-8,
16761676
false (``0``) is returned.

0 commit comments

Comments
 (0)