Skip to content

Commit adf8e11

Browse files
committed
Fixup code sample
This block is supposed to be a mirror of the block above it, but with most lines commented out to focus on the inner function body. However, a few lines were missing in the commented region.
1 parent 733e0ee commit adf8e11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/doc/trpl/concurrency.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ thread more closely:
248248
```
249249
# use std::sync::{Arc, Mutex};
250250
# use std::thread;
251+
#
251252
# fn main() {
252253
# let data = Arc::new(Mutex::new(vec![1u32, 2, 3]));
253254
# for i in 0..2 {
@@ -257,6 +258,8 @@ thread::spawn(move || {
257258
data[i] += 1;
258259
});
259260
# }
261+
#
262+
# thread::sleep_ms(50);
260263
# }
261264
```
262265

0 commit comments

Comments
 (0)