1
0
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:
Andrew Walbran 2023-01-19 10:49:51 +00:00
parent facbac4601
commit 95c0447e4b

View File

@ -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);
}
}