Skip to content

Commit

Permalink
added move
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Poveda committed Apr 26, 2017
1 parent 08514b4 commit bdb6bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/thread/mod.rs
Expand Up @@ -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!!!");
/// }
Expand Down

0 comments on commit bdb6bb9

Please sign in to comment.