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:
parent
9ed27df180
commit
f77208972a
@ -546,7 +546,7 @@ fn main() {
|
||||
for i in range(0u, 3) {
|
||||
Thread::spawn(move || {
|
||||
println!("{}", vec[i]);
|
||||
}).detach();
|
||||
});
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user