Skip to content

Commit 97e84a3

Browse files
authored
Merge pull request #470 from Enselic/fix-race
races.md: data race -> race condition to violate memory safety
2 parents 0674321 + 6855d3a commit 97e84a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/races.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ thread::spawn(move || {
6060
println!("{}", data[idx.load(Ordering::SeqCst)]);
6161
```
6262

63-
We can cause a data race if we instead do the bound check in advance, and then
64-
unsafely access the data with an unchecked value:
63+
We can cause a race condition to violate memory safety if we instead do the bound
64+
check in advance, and then unsafely access the data with an unchecked value:
6565

6666
```rust,no_run
6767
use std::thread;

0 commit comments

Comments
 (0)