From 3e0e973a0b6017cec25d7b3a0d6a51313bf618a0 Mon Sep 17 00:00:00 2001 From: chisushan Date: Thu, 16 Feb 2023 15:48:20 +0800 Subject: [PATCH] Fix return value of PyModule_AddObjectRef documentation --- Doc/c-api/module.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst index e2ba157b32c7d9..ffada605eb34eb 100644 --- a/Doc/c-api/module.rst +++ b/Doc/c-api/module.rst @@ -451,7 +451,7 @@ state: On success, return ``0``. On error, raise an exception and return ``-1``. - Return ``NULL`` if *value* is ``NULL``. It must be called with an exception + Return ``-1`` if *value* is ``NULL``. It must be called with an exception raised in this case. Example usage::