about summary refs log tree commit diff
path: root/src/libstd/thread.rs
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2015-01-17 23:44:04 +0200
committerSimonas Kazlauskas <git@kazlauskas.me>2015-01-17 23:53:53 +0200
commit618cf5f8d79dc92bcbdbe2c0e91d681e2e685cd7 (patch)
treebfec10daaa0ee31312843bf37638f39c4b11e448 /src/libstd/thread.rs
parent89c4e3792ddc5b45706ea0e919806a248f7a87c3 (diff)
downloadrust-618cf5f8d79dc92bcbdbe2c0e91d681e2e685cd7.tar.gz
rust-618cf5f8d79dc92bcbdbe2c0e91d681e2e685cd7.zip
Refine wording of Thread::panicking
Previous wording wasn’t clear about its actual behaviour. It could be
interpreted as answering either:

* Can current thread panic?
* Is current thread unwinding because of panic?
Diffstat (limited to 'src/libstd/thread.rs')
-rw-r--r--src/libstd/thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/thread.rs b/src/libstd/thread.rs
index 932556fe1a6..bcd4dee63b0 100644
--- a/src/libstd/thread.rs
+++ b/src/libstd/thread.rs
@@ -382,7 +382,7 @@ impl Thread {
         unsafe { imp::yield_now() }
     }
 
-    /// Determines whether the current thread is panicking.
+    /// Determines whether the current thread is unwinding because of panic.
     #[inline]
     #[stable]
     pub fn panicking() -> bool {