Skip to content

Commit 737029d

Browse files
authored
Merge pull request #219 from isakcodes/patch-1
Data Race definition should be more precise
2 parents d7cb40b + 45a997a commit 737029d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/races.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Safe Rust guarantees an absence of data races, which are defined as:
44

55
* two or more threads concurrently accessing a location of memory
6-
* one of them is a write
7-
* one of them is unsynchronized
6+
* one or more of them is a write
7+
* one or more of them is unsynchronized
88

99
A data race has Undefined Behavior, and is therefore impossible to perform
1010
in Safe Rust. Data races are *mostly* prevented through Rust's ownership system:

0 commit comments

Comments
 (0)