]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix comment in _PyMutex_TryUnlock (#125319)
authorKumar Aditya <kumaraditya@python.org>
Sun, 13 Oct 2024 15:29:07 +0000 (20:59 +0530)
committerGitHub <noreply@github.com>
Sun, 13 Oct 2024 15:29:07 +0000 (20:59 +0530)
Include/internal/pycore_lock.h

index e6da083b807ce5b271fc578e092c3ebf0fa46912..cd7deda00c7beecceee5b5b4873774854d6ee87c 100644 (file)
@@ -64,8 +64,8 @@ PyMutex_LockFlags(PyMutex *m, _PyLockFlags flags)
     }
 }
 
-// Unlock a mutex, returns 0 if the mutex is not locked (used for improved
-// error messages).
+// Unlock a mutex, returns -1 if the mutex is not locked (used for improved
+// error messages) otherwise returns 0.
 extern int _PyMutex_TryUnlock(PyMutex *m);