We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a72954 commit b7a49e7Copy full SHA for b7a49e7
src/libstd/sys/windows/mutex.rs
@@ -58,7 +58,7 @@ pub unsafe fn raw(m: &Mutex) -> c::PSRWLOCK {
58
impl Mutex {
59
pub const fn new() -> Mutex {
60
Mutex {
61
- // This works because SRWLOCK_INIT is a NULL pointer, so we are also properly
+ // This works because SRWLOCK_INIT is 0 (wrapped in a struct), so we are also properly
62
// initializing an SRWLOCK here.
63
lock: AtomicUsize::new(0),
64
held: UnsafeCell::new(false),
0 commit comments