Skip to content

Commit bdb6bb9

Browse files
author
Christian Poveda
committed
added move
1 parent 08514b4 commit bdb6bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/thread/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ struct Inner {
727727
/// thread::Builder::new()
728728
/// .name(thread_name) // Now you can identify which thread panicked
729729
/// // thanks to the handle's name
730-
/// .spawn(|| {
730+
/// .spawn(move || {
731731
/// if i == 3 {
732732
/// panic!("I'm scared!!!");
733733
/// }

0 commit comments

Comments
 (0)