]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-1635741: Fix typo in PyModule_AddObjectRef() doc (GH-23234)
authorVictor Stinner <vstinner@python.org>
Wed, 11 Nov 2020 00:52:26 +0000 (01:52 +0100)
committerGitHub <noreply@github.com>
Wed, 11 Nov 2020 00:52:26 +0000 (01:52 +0100)
It is similar to PyModule_AddObject(), not to itself.

Doc/whatsnew/3.10.rst
Misc/NEWS.d/next/C API/2020-11-03-11-52-27.bpo-1635741.aDYJKB.rst

index 807e87f2eef1182d01222994c526f648de4af8b5..74c1c28ec0ff3b6df2dbd9f5a2e7575e243d6723 100644 (file)
@@ -424,7 +424,7 @@ New Features
   (Contributed by Alex Gaynor in :issue:`41784`.)
 
 * Added :c:func:`PyModule_AddObjectRef` function: similar to
-  :c:func:`PyModule_AddObjectRef` but don't steal a reference to the value on
+  :c:func:`PyModule_AddObject` but don't steal a reference to the value on
   success.
   (Contributed by Victor Stinner in :issue:`1635741`.)
 
index 2ab1afb922fa8be313a400bb801d7b42fc923684..2c118129dbf10412d3583a5ed24c7862ab2e1b48 100644 (file)
@@ -1,3 +1,3 @@
 Added :c:func:`PyModule_AddObjectRef` function: similar to
-:c:func:`PyModule_AddObjectRef` but don't steal a reference to the value on
+:c:func:`PyModule_AddObject` but don't steal a reference to the value on
 success. Patch by Victor Stinner.