added move
This commit is contained in:
@@ -727,7 +727,7 @@ struct Inner {
|
|||||||
/// thread::Builder::new()
|
/// thread::Builder::new()
|
||||||
/// .name(thread_name) // Now you can identify which thread panicked
|
/// .name(thread_name) // Now you can identify which thread panicked
|
||||||
/// // thanks to the handle's name
|
/// // thanks to the handle's name
|
||||||
/// .spawn(|| {
|
/// .spawn(move || {
|
||||||
/// if i == 3 {
|
/// if i == 3 {
|
||||||
/// panic!("I'm scared!!!");
|
/// panic!("I'm scared!!!");
|
||||||
/// }
|
/// }
|
||||||
|
|||||||
Reference in New Issue
Block a user