mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-05 16:10:31 +02:00
Remove comment inside unsafe block.
Martin thinks the safety comment at the top is enough.
This commit is contained in:
parent
facbac4601
commit
95c0447e4b
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user