diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-01-22 18:09:58 -0500 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-01-22 18:09:58 -0500 |
| commit | 3364d412827151c669c0dc2cc67e7c0e6e4d8c55 (patch) | |
| tree | a18cef48c8c271eb84581321ea38935210e815ea /src/libstd/rt | |
| parent | 4db64bd82426fd914f98059e3fb7a146ed57ad9c (diff) | |
| parent | 618cf5f8d79dc92bcbdbe2c0e91d681e2e685cd7 (diff) | |
| download | rust-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.rs | 2 |
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()) } |
