diff options
| author | Christian Poveda <z1mvader@protonmail.com> | 2017-04-26 00:57:59 -0500 |
|---|---|---|
| committer | Christian Poveda <z1mvader@protonmail.com> | 2017-04-26 00:57:59 -0500 |
| commit | bdb6bb9684e5cc874d69d6cd65be3d9fb1e64401 (patch) | |
| tree | bba9d45f13a72a61401cd6fe479afa1b08bffdef /src/libstd | |
| parent | 08514b4376eda86f2c05d91334333ebf8caad064 (diff) | |
| download | rust-bdb6bb9684e5cc874d69d6cd65be3d9fb1e64401.tar.gz rust-bdb6bb9684e5cc874d69d6cd65be3d9fb1e64401.zip | |
added move
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/thread/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs index 98452a396aa..aa7ef2da0ae 100644 --- a/src/libstd/thread/mod.rs +++ b/src/libstd/thread/mod.rs @@ -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!!!"); /// } |
