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.
This commit is contained in:
Andrew Barchuk 2015-01-14 21:59:46 +02:00 committed by Steve Klabnik
parent 9ed27df180
commit f77208972a

View File

@ -546,7 +546,7 @@ fn main() {
for i in range(0u, 3) {
Thread::spawn(move || {
println!("{}", vec[i]);
}).detach();
});
}
}
```