We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6edc994 + 127e63c commit 66109d2Copy full SHA for 66109d2
src/doc/tarpl/races.md
@@ -25,7 +25,7 @@ race condition can't violate memory safety in a Rust program on
25
its own. Only in conjunction with some other unsafe code can a race condition
26
actually violate memory safety. For instance:
27
28
-```rust,norun
+```rust,no_run
29
use std::thread;
30
use std::sync::atomic::{AtomicUsize, Ordering};
31
use std::sync::Arc;
@@ -56,7 +56,7 @@ thread::spawn(move || {
56
println!("{}", data[idx.load(Ordering::SeqCst)]);
57
```
58
59
60
61
62
0 commit comments