Skip to content

Commit 004758e

Browse files
[3.12] gh-121749: Fix discrepancy in docs for PyModule_AddObjectRef (GH-121750) (GH-121753)
(cherry picked from commit 26dfb27) Co-authored-by: Dominic H <[email protected]>
1 parent 863c0a3 commit 004758e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Doc/c-api/module.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ state:
492492
493493
On success, return ``0``. On error, raise an exception and return ``-1``.
494494
495-
Return ``NULL`` if *value* is ``NULL``. It must be called with an exception
495+
Return ``-1`` if *value* is ``NULL``. It must be called with an exception
496496
raised in this case.
497497
498498
Example usage::
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix documentation for :c:func:`PyModule_AddObjectRef`.

0 commit comments

Comments
 (0)