Clarify comment in tests/fail/tree_borrows/reservedim_spurious_write.rs

Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
Neven Villani 2024-07-12 10:51:32 +02:00 committed by GitHub
parent 68aed4a5ce
commit 78f6386b62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,8 +41,9 @@ macro_rules! synchronized {
}
fn main() {
// The conflict occurs one one single location but the example involves
// lazily initialized permissions.
// The conflict occurs on one single location but the example involves
// lazily initialized permissions. We will use `&mut Cell<()>` references
// to `data` to achieve this.
let mut data = 0u8;
let ptr = SendPtr(std::ptr::addr_of_mut!(data));
let barrier = Arc::new(Barrier::new(2));