about summary refs log tree commit diff
path: root/src/test/run-fail/task-spawn-barefn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-fail/task-spawn-barefn.rs')
-rw-r--r--src/test/run-fail/task-spawn-barefn.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-fail/task-spawn-barefn.rs b/src/test/run-fail/task-spawn-barefn.rs
index 406f7dbcb67..8ad9d4cf6e2 100644
--- a/src/test/run-fail/task-spawn-barefn.rs
+++ b/src/test/run-fail/task-spawn-barefn.rs
@@ -8,12 +8,12 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// error-pattern:Ensure that the child task runs by panicking
+// error-pattern:Ensure that the child thread runs by panicking
 
 use std::thread;
 
 fn main() {
-    // the purpose of this test is to make sure that task::spawn()
+    // the purpose of this test is to make sure that thread::spawn()
     // works when provided with a bare function:
     let r = thread::spawn(startfn).join();
     if r.is_err() {