We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 67b5129 + d992d3d commit 60cb151Copy full SHA for 60cb151
src/libstd/rt/unwind.rs
@@ -98,8 +98,8 @@ thread_local! { static PANICKING: Cell<bool> = Cell::new(false) }
98
99
/// Invoke a closure, capturing the cause of panic if one occurs.
100
///
101
-/// This function will return `None` if the closure did not panic, and will
102
-/// return `Some(cause)` if the closure panics. The `cause` returned is the
+/// This function will return `Ok(())` if the closure did not panic, and will
+/// return `Err(cause)` if the closure panics. The `cause` returned is the
103
/// object with which panic was originally invoked.
104
105
/// This function also is unsafe for a variety of reasons:
0 commit comments