]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-115145: Update documentation about ``PyThreadState_DeleteCurrent`` (gh-124920)
authorDonghee Na <donghee.na@python.org>
Thu, 3 Oct 2024 10:34:47 +0000 (19:34 +0900)
committerGitHub <noreply@github.com>
Thu, 3 Oct 2024 10:34:47 +0000 (19:34 +0900)
Doc/c-api/init.rst

index 0ed3f77d84be97f3f0e49db46ea764f96929a0a3..6d16e04ac3d864ba7d784d67c3f4fcec81f3230b 100644 (file)
@@ -1265,7 +1265,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`.