fix comment in _PyMutex_TryUnlock (#125319)

This commit is contained in:
Kumar Aditya 2024-10-13 20:59:07 +05:30 committed by GitHub
parent 283ea5f3b2
commit 022c50d190
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View 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);