mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-17 08:02:38 +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.
|
// 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user