1
Fork 0

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?
This commit is contained in:
Simonas Kazlauskas 2015-01-17 23:44:04 +02:00
parent 89c4e3792d
commit 618cf5f8d7
2 changed files with 2 additions and 2 deletions

View file

@ -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 {