From f77208972a8603f6cc63aa4c91a0e277c0075e48 Mon Sep 17 00:00:00 2001 From: Andrew Barchuk Date: Wed, 14 Jan 2015 21:59:46 +0200 Subject: [PATCH] Remove Thread::detach() call from intro example The mentioned method are no longer part of Thread. Spawned threads are detached by default as of now. --- src/doc/intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/intro.md b/src/doc/intro.md index b5e5fab7469..98ce6e1466d 100644 --- a/src/doc/intro.md +++ b/src/doc/intro.md @@ -546,7 +546,7 @@ fn main() { for i in range(0u, 3) { Thread::spawn(move || { println!("{}", vec[i]); - }).detach(); + }); } } ```