Skip to content

Commit f672ee2

Browse files
[3.13] gh-121749: Fix discrepancy in docs for PyModule_AddObjectRef (GH-121750) (GH-121752)
(cherry picked from commit 26dfb27) Co-authored-by: Dominic H <[email protected]>
1 parent dfedbdb commit f672ee2

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
@@ -517,7 +517,7 @@ state:
517517
518518
On success, return ``0``. On error, raise an exception and return ``-1``.
519519
520-
Return ``NULL`` if *value* is ``NULL``. It must be called with an exception
520+
Return ``-1`` if *value* is ``NULL``. It must be called with an exception
521521
raised in this case.
522522
523523
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)