From 12ea2123b4cfaa2272ed1fff6fb91c93dfcffc9e Mon Sep 17 00:00:00 2001 From: Sam Gross Date: Thu, 16 Jan 2025 22:22:04 +0000 Subject: [PATCH] Fix doc --- Doc/c-api/object.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst index d1291d30861e9a..30cdac8e94d0de 100644 --- a/Doc/c-api/object.rst +++ b/Doc/c-api/object.rst @@ -619,7 +619,7 @@ Object Protocol if the object's reference count was successfully incremented. Otherwise, this function returns ``0``. - :c:function:`PyUnstable_EnableTryIncRef` must have been called + :c:func:`PyUnstable_EnableTryIncRef` must have been called earlier on *obj* or this function may spuriously return ``0`` in the :term:`free threading` build.