rust/library/std
Yuki Okushi 76725e081d
Rollup merge of #97245 - m-ou-se:rwlock-state-typo, r=JohnTitor
Fix typo in futex RwLock::write_contended.

I wrote `state` where I should've used `s`.

This was spotted by `@Warrenren.`

This change removes the unnecessary `s` variable to prevent that mistake.

Fortunately, this typo didn't affect the correctness of the lock, as the
second half of the condition (!has_writers_waiting) is enough for
correctness, which explains why this mistake didn't show up during
testing.

Fixes https://github.com/rust-lang/rust/issues/97162
2022-05-22 11:53:08 +09:00
..
benches
primitive_docs
src Rollup merge of #97245 - m-ou-se:rwlock-state-typo, r=JohnTitor 2022-05-22 11:53:08 +09:00
tests
build.rs
Cargo.toml Update libc dependency of std to 0.2.126 2022-05-21 00:02:20 +02:00