Skip to content

Commit 022c50d

Browse files
fix comment in _PyMutex_TryUnlock (#125319)
1 parent 283ea5f commit 022c50d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Include/internal/pycore_lock.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ PyMutex_LockFlags(PyMutex *m, _PyLockFlags flags)
6464
}
6565
}
6666

67-
// Unlock a mutex, returns 0 if the mutex is not locked (used for improved
68-
// error messages).
67+
// Unlock a mutex, returns -1 if the mutex is not locked (used for improved
68+
// error messages) otherwise returns 0.
6969
extern int _PyMutex_TryUnlock(PyMutex *m);
7070

7171

0 commit comments

Comments
 (0)