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:
parent
89c4e3792d
commit
618cf5f8d7
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue