]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Docs: avoid informal formulation in `Doc/c-api/conversion.rst` (GH-140898...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 2 Nov 2025 13:57:26 +0000 (14:57 +0100)
committerGitHub <noreply@github.com>
Sun, 2 Nov 2025 13:57:26 +0000 (13:57 +0000)
Docs: avoid informal formulation in `Doc/c-api/conversion.rst` (GH-140898)
(cherry picked from commit 173cc53d9fdc596d7a19102fa407c829f9c71516)

Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
Doc/c-api/conversion.rst

index c92ef4c653a675fc894025ecd6ec3eb29a0ee33c..cc7a3d9d9561a3d87a8995f3618e05c0a3e7f51b 100644 (file)
@@ -41,7 +41,7 @@ The return value (*rv*) for these functions should be interpreted as follows:
   ``rv + 1`` bytes would have been needed to succeed. ``str[size-1]`` is ``'\0'``
   in this case.
 
-* When ``rv < 0``, "something bad happened." ``str[size-1]`` is ``'\0'`` in
+* When ``rv < 0``, the output conversion failed and ``str[size-1]`` is ``'\0'`` in
   this case too, but the rest of *str* is undefined. The exact cause of the error
   depends on the underlying platform.