You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-26 10:41:01 +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.
|
||||
unsafe {
|
||||
println!("r1 is: {}", *r1);
|
||||
*r1 = 10; // Data race if r1 is being written concurrently!
|
||||
*r1 = 10;
|
||||
println!("r2 is: {}", *r2);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user