]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-115145: Update documentation about ``PyThreadState_DeleteCurrent`` (gh...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 3 Oct 2024 10:45:25 +0000 (12:45 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Oct 2024 10:45:25 +0000 (10:45 +0000)
gh-115145: Update documentation about ``PyThreadState_DeleteCurrent`` (gh-124920)
(cherry picked from commit 9eeb21bf761070649bf8d78976a62dabb6d67a99)

Co-authored-by: Donghee Na <donghee.na@python.org>
Doc/c-api/init.rst

index 8b7b28ae319200d5f888389bf94fb7f53bc82c93..bec075038f06e0d8d03c68f868f59ef4757e7d93 100644 (file)
@@ -1269,7 +1269,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
 .. c:function:: void PyThreadState_DeleteCurrent(void)
 
    Destroy the current thread state and release the global interpreter lock.
-   Like :c:func:`PyThreadState_Delete`, the global interpreter lock need not
+   Like :c:func:`PyThreadState_Delete`, the global interpreter lock must
    be held. The thread state must have been reset with a previous call
    to :c:func:`PyThreadState_Clear`.