File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -434,9 +434,9 @@ pub fn panicking() -> bool {
434
434
435
435
/// Invokes a closure, capturing the cause of panic if one occurs.
436
436
///
437
- /// This function will return `Ok(())` if the closure does not panic, and will
438
- /// return `Err(cause)` if the closure panics. The `cause` returned is the
439
- /// object with which panic was originally invoked.
437
+ /// This function will return `Ok` with the closure's result if the closure
438
+ /// does not panic, and will return `Err(cause)` if the closure panics. The
439
+ /// `cause` returned is the object with which panic was originally invoked.
440
440
///
441
441
/// It is currently undefined behavior to unwind from Rust code into foreign
442
442
/// code, so this function is particularly useful when Rust is called from
You can’t perform that action at this time.
0 commit comments