Skip to content

Commit 02edf2e

Browse files
GovernmentPlatesestyxx
authored andcommitted
pythongh-121749: Fix discrepancy in docs for PyModule_AddObjectRef (pythonGH-121750)
1 parent 511e716 commit 02edf2e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Doc/c-api/module.rst

Lines changed: 1 addition & 1 deletion
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::
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix documentation for :c:func:`PyModule_AddObjectRef`.

0 commit comments

Comments
 (0)