about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorChristian Poveda <z1mvader@protonmail.com>2017-04-26 00:57:59 -0500
committerChristian Poveda <z1mvader@protonmail.com>2017-04-26 00:57:59 -0500
commitbdb6bb9684e5cc874d69d6cd65be3d9fb1e64401 (patch)
treebba9d45f13a72a61401cd6fe479afa1b08bffdef /src/libstd
parent08514b4376eda86f2c05d91334333ebf8caad064 (diff)
downloadrust-bdb6bb9684e5cc874d69d6cd65be3d9fb1e64401.tar.gz
rust-bdb6bb9684e5cc874d69d6cd65be3d9fb1e64401.zip
added move
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/thread/mod.rs2
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!!!");
 ///         }