Skip to content

Commit 8d0882d

Browse files
authored
pythongh-115304: Correct the typical initialization of PyMutex in its comment document
1 parent 2939ad0 commit 8d0882d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/internal/pycore_lock.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ extern "C" {
2626
// 0b11: locked and has parked threads
2727
//
2828
// Typical initialization:
29-
// PyMutex m = (PyMutex){0};
29+
// PyMutex m = {0};
3030
//
3131
// Typical usage:
3232
// PyMutex_Lock(&m);

0 commit comments

Comments
 (0)