Skip to content

Commit d992d3d

Browse files
committed
Fix issue with rt::unwind::try() docs
This is now a Result, not an Option.
1 parent 3b2ed14 commit d992d3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/rt/unwind.rs

Lines changed: 2 additions & 2 deletions
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)