diff --git a/src/races.md b/src/races.md index aaeaf5ba..6f8b9a3c 100644 --- a/src/races.md +++ b/src/races.md @@ -60,8 +60,8 @@ thread::spawn(move || { println!("{}", data[idx.load(Ordering::SeqCst)]); ``` -We can cause a data race if we instead do the bound check in advance, and then -unsafely access the data with an unchecked value: +We can cause a race condition to violate memory safety if we instead do the bound +check in advance, and then unsafely access the data with an unchecked value: ```rust,no_run use std::thread;