You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-07-16 19:14:20 +02:00
Remove comment inside unsafe block.
Martin thinks the safety comment at the top is enough.
This commit is contained in:
@ -15,7 +15,7 @@ fn main() {
|
|||||||
// references or concurrently through any other pointers.
|
// references or concurrently through any other pointers.
|
||||||
unsafe {
|
unsafe {
|
||||||
println!("r1 is: {}", *r1);
|
println!("r1 is: {}", *r1);
|
||||||
*r1 = 10; // Data race if r1 is being written concurrently!
|
*r1 = 10;
|
||||||
println!("r2 is: {}", *r2);
|
println!("r2 is: {}", *r2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user