Skip to content

Commit 080dfa6

Browse files
manoj-km24miss-islington
authored andcommitted
Fix minor typos in unicode.rst (GH-149587)
(cherry picked from commit 4e97ff3) Co-authored-by: Manoj K M <manojkmdev24@gmail.com>
1 parent f4a6430 commit 080dfa6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/c-api/unicode.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ APIs:
749749
The string must not have been “used” yet.
750750
See :c:func:`PyUnicode_New` for details.
751751
752-
Return the number of written character, or return ``-1`` and raise an
752+
Return the number of written characters, or return ``-1`` and raise an
753753
exception on error.
754754
755755
.. versionadded:: 3.3
@@ -1161,7 +1161,7 @@ These are the UTF-8 codec APIs:
11611161
.. versionadded:: 3.3
11621162
11631163
.. versionchanged:: 3.7
1164-
The return type is now ``const char *`` rather of ``char *``.
1164+
The return type is now ``const char *`` rather than ``char *``.
11651165
11661166
.. versionchanged:: 3.10
11671167
This function is a part of the :ref:`limited API <limited-c-api>`.
@@ -1183,7 +1183,7 @@ These are the UTF-8 codec APIs:
11831183
.. versionadded:: 3.3
11841184
11851185
.. versionchanged:: 3.7
1186-
The return type is now ``const char *`` rather of ``char *``.
1186+
The return type is now ``const char *`` rather than ``char *``.
11871187
11881188
11891189
UTF-32 Codecs

0 commit comments

Comments
 (0)