Skip to content

Commit

Permalink
fix comment in _PyMutex_TryUnlock (#125319)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaraditya303 authored Oct 13, 2024
1 parent 283ea5f commit 022c50d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Include/internal/pycore_lock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);


Expand Down

0 comments on commit 022c50d

Please sign in to comment.