We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b2ed14 commit d992d3dCopy full SHA for d992d3d
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