diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-02-04 02:19:54 -0500 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-02-04 02:19:54 -0500 |
| commit | d992d3d9f3006f898dd0ad09458c85c66b23841c (patch) | |
| tree | 1ba32fa009381d50b09f7c10e0bc7905733ac348 /src/libstd/rt | |
| parent | 3b2ed14906fd9f9daa27cc7d1dad263d2f5ff450 (diff) | |
| download | rust-d992d3d9f3006f898dd0ad09458c85c66b23841c.tar.gz rust-d992d3d9f3006f898dd0ad09458c85c66b23841c.zip | |
Fix issue with rt::unwind::try() docs
This is now a Result, not an Option.
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/unwind.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt/unwind.rs b/src/libstd/rt/unwind.rs index 81ca5aa0e8a..cb2172d1dfc 100644 --- a/src/libstd/rt/unwind.rs +++ b/src/libstd/rt/unwind.rs @@ -98,8 +98,8 @@ thread_local! { static PANICKING: Cell<bool> = Cell::new(false) } /// Invoke a closure, capturing the cause of panic if one occurs. /// -/// This function will return `None` if the closure did not panic, and will -/// 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 /// object with which panic was originally invoked. /// /// This function also is unsafe for a variety of reasons: |
