From b62c11023c4fdbb1e6ef9f074310a8e95db7827e Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Sat, 4 Apr 2015 12:50:43 +0530 Subject: [PATCH] Fix doc (fixup #24031) --- src/doc/trpl/concurrency.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/doc/trpl/concurrency.md b/src/doc/trpl/concurrency.md index bc0a76bc2b6e7..f9358f28b0194 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); # } ```