]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Fix minor typos in unicode.rst (GH-149587) (#150163)
authorStan Ulbrych <stan@python.org>
Wed, 20 May 2026 15:37:06 +0000 (16:37 +0100)
committerGitHub <noreply@github.com>
Wed, 20 May 2026 15:37:06 +0000 (15:37 +0000)
(cherry picked from commit 4e97ff3351f381a61b238bd8e805e4e8dd3ea5cf)

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

index 1aedd7bed1ff895d7307e1cffa2b407ed3d8b1bf..feca7a92e2716582c9e04a5d439bfd2999072b61 100644 (file)
@@ -682,7 +682,7 @@ APIs:
    Fail if *fill_char* is bigger than the string maximum character, or if the
    string has more than 1 reference.
 
-   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
@@ -1082,7 +1082,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>`.
@@ -1104,7 +1104,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