added move

This commit is contained in:
Christian Poveda
2017-04-26 00:57:59 -05:00
parent 08514b4376
commit bdb6bb9684

View File

@@ -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!!!");
/// } /// }