]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Fix minor typos in unicode.rst (GH-149587) (#149621)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 9 May 2026 21:38:55 +0000 (23:38 +0200)
committerGitHub <noreply@github.com>
Sat, 9 May 2026 21:38:55 +0000 (21:38 +0000)
Fix minor typos in unicode.rst (GH-149587)
(cherry picked from commit 4e97ff3351f381a61b238bd8e805e4e8dd3ea5cf)

Co-authored-by: Manoj K M <manojkmdev24@gmail.com>
Doc/c-api/unicode.rst

index ab58a64647ac610c89a1a2e75089adc0e7a3f64f..a47d9f7e2bb5f67fc4abbac53eba393d6f013414 100644 (file)
@@ -749,7 +749,7 @@ APIs:
    The string must not have been “used” yet.
    See :c:func:`PyUnicode_New` for details.
 
-   Return the number of written character, or return ``-1`` and raise an
+   Return the number of written characters, or return ``-1`` and raise an
    exception on error.
 
    .. versionadded:: 3.3
@@ -1161,7 +1161,7 @@ These are the UTF-8 codec APIs:
    .. versionadded:: 3.3
 
    .. versionchanged:: 3.7
-      The return type is now ``const char *`` rather of ``char *``.
+      The return type is now ``const char *`` rather than ``char *``.
 
    .. versionchanged:: 3.10
       This function is a part of the :ref:`limited API <limited-c-api>`.
@@ -1183,7 +1183,7 @@ These are the UTF-8 codec APIs:
    .. versionadded:: 3.3
 
    .. versionchanged:: 3.7
-      The return type is now ``const char *`` rather of ``char *``.
+      The return type is now ``const char *`` rather than ``char *``.
 
 
 UTF-32 Codecs