Skip to content

Commit b62c110

Browse files
committed
Fix doc (fixup #24031)
1 parent 29582d3 commit b62c110

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/doc/trpl/concurrency.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,9 @@ We now call `clone()` on our `Arc`, which increases the internal count. This
245245
handle is then moved into the new thread. Let's examine the body of the
246246
thread more closely:
247247

248-
```
248+
```rust
249249
# use std::sync::{Arc, Mutex};
250250
# use std::thread;
251-
#
252251
# fn main() {
253252
# let data = Arc::new(Mutex::new(vec![1u32, 2, 3]));
254253
# for i in 0..2 {
@@ -258,7 +257,6 @@ thread::spawn(move || {
258257
data[i] += 1;
259258
});
260259
# }
261-
#
262260
# thread::sleep_ms(50);
263261
# }
264262
```

0 commit comments

Comments
 (0)