about summary refs log tree commit diff
path: root/src/libgreen/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgreen/lib.rs')
-rw-r--r--src/libgreen/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libgreen/lib.rs b/src/libgreen/lib.rs
index 5435a6f74d3..fcebfeac292 100644
--- a/src/libgreen/lib.rs
+++ b/src/libgreen/lib.rs
@@ -168,7 +168,7 @@
 //! drop(handle);
 //!
 //! // Required to shut down this scheduler pool.
-//! // The task will fail if `shutdown` is not called.
+//! // The task will panic if `shutdown` is not called.
 //! pool.shutdown();
 //! # }
 //! ```
@@ -511,7 +511,7 @@ impl TaskState {
 impl Drop for SchedPool {
     fn drop(&mut self) {
         if self.threads.len() > 0 {
-            fail!("dropping a M:N scheduler pool that wasn't shut down");
+            panic!("dropping a M:N scheduler pool that wasn't shut down");
         }
     }
 }