about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-01-22 18:09:58 -0500
committerSteve Klabnik <steve@steveklabnik.com>2015-01-22 18:09:58 -0500
commit3364d412827151c669c0dc2cc67e7c0e6e4d8c55 (patch)
treea18cef48c8c271eb84581321ea38935210e815ea /src/libstd/rt
parent4db64bd82426fd914f98059e3fb7a146ed57ad9c (diff)
parent618cf5f8d79dc92bcbdbe2c0e91d681e2e685cd7 (diff)
downloadrust-3364d412827151c669c0dc2cc67e7c0e6e4d8c55.tar.gz
rust-3364d412827151c669c0dc2cc67e7c0e6e4d8c55.zip
Rollup merge of #21325 - nagisa:thread-panicking, r=steveklabnik
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?

r? @steveklabnik 
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/unwind.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rt/unwind.rs b/src/libstd/rt/unwind.rs
index 73b8f104c23..b313a5312bc 100644
--- a/src/libstd/rt/unwind.rs
+++ b/src/libstd/rt/unwind.rs
@@ -152,7 +152,7 @@ pub unsafe fn try<F: FnOnce()>(f: F) -> Result<(), Box<Any + Send>> {
     }
 }
 
-/// Test if the current thread is currently panicking.
+/// Determines whether the current thread is unwinding because of panic.
 pub fn panicking() -> bool {
     PANICKING.with(|s| s.get())
 }