diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-04-04 12:50:43 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-04-04 12:50:43 +0530 |
| commit | b62c11023c4fdbb1e6ef9f074310a8e95db7827e (patch) | |
| tree | 4e5fcbf512e9c285756d84bdf15b77c03d800b63 | |
| parent | 29582d39bd67b2c3f7a9e05e2eecf4db52097fc5 (diff) | |
Fix doc (fixup #24031)
| -rw-r--r-- | src/doc/trpl/concurrency.md | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/doc/trpl/concurrency.md b/src/doc/trpl/concurrency.md index bc0a76bc2b6..f9358f28b01 100644 --- a/src/doc/trpl/concurrency.md +++ b/src/doc/trpl/concurrency.md @@ -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 { @@ -258,7 +257,6 @@ thread::spawn(move || { data[i] += 1; }); # } -# # thread::sleep_ms(50); # } ``` |
