Skip to content

Commit 60cb151

Browse files
committed
Rollup merge of rust-lang#21924 - steveklabnik:fix_try_docs, r=huonw
This is now a Result, not an Option.
2 parents 67b5129 + d992d3d commit 60cb151

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/rt/unwind.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ thread_local! { static PANICKING: Cell<bool> = Cell::new(false) }
9898

9999
/// Invoke a closure, capturing the cause of panic if one occurs.
100100
///
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
101+
/// This function will return `Ok(())` if the closure did not panic, and will
102+
/// return `Err(cause)` if the closure panics. The `cause` returned is the
103103
/// object with which panic was originally invoked.
104104
///
105105
/// This function also is unsafe for a variety of reasons:

0 commit comments

Comments
 (0)