added move
This commit is contained in:
parent
08514b4376
commit
bdb6bb9684
1 changed files with 1 additions and 1 deletions
|
|
@ -727,7 +727,7 @@ struct Inner {
|
|||
/// thread::Builder::new()
|
||||
/// .name(thread_name) // Now you can identify which thread panicked
|
||||
/// // thanks to the handle's name
|
||||
/// .spawn(|| {
|
||||
/// .spawn(move || {
|
||||
/// if i == 3 {
|
||||
/// panic!("I'm scared!!!");
|
||||
/// }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue