Skip to content

Commit

Permalink
Fix doc (fixup #24031)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Apr 4, 2015
1 parent 29582d3 commit b62c110
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/doc/trpl/concurrency.md
Expand Up @@ -245,10 +245,9 @@ We now call `clone()` on our `Arc`, which increases the internal count. This
handle is then moved into the new thread. Let's examine the body of the
thread more closely:

```
```rust
# use std::sync::{Arc, Mutex};
# use std::thread;
#
# fn main() {
# let data = Arc::new(Mutex::new(vec![1u32, 2, 3]));
# for i in 0..2 {
Expand All @@ -258,7 +257,6 @@ thread::spawn(move || {
data[i] += 1;
});
# }
#
# thread::sleep_ms(50);
# }
```
Expand Down

0 comments on commit b62c110

Please sign in to comment.