Replace reads with explicit `println!`s

pull/378/head
SabrinaJewson 2 years ago
parent 46f31aeaab
commit 103a733af9
No known key found for this signature in database
GPG Key ID: 3D5438FFA5F05564

@ -75,9 +75,9 @@ both threads read it.
// Initial state
let data = 0;
// Thread 1:
data;
println!("{data}");
// Thread 2:
data;
eprintln!("{data}");
```
Each memory location, similarly to threads, can be shown as another column on
@ -104,7 +104,7 @@ above:
```rust
let mut data = 0;
data = 1;
data;
println!("{data}");
data = 2;
```

@ -10,7 +10,7 @@ let mut data = 0;
// Thread 1:
data = 1;
// Thread 2:
data;
println!("{data}");
```
Of course, any Rust programmer will immediately tell you that this code doesnt

Loading…
Cancel
Save