From 618cf5f8d79dc92bcbdbe2c0e91d681e2e685cd7 Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Sat, 17 Jan 2015 23:44:04 +0200 Subject: Refine wording of Thread::panicking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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? --- src/libstd/rt/unwind.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/rt') 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: F) -> Result<(), Box> { } } -/// 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()) } -- cgit 1.4.1-3-g733a5