about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-06 05:38:37 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-06 16:21:09 +0530
commit60cb151be061f859feaf6cf0246f0189b3ad35a9 (patch)
tree104aae5be87431d442a0cc4ba6885405ff04d070 /src/libstd/rt
parent67b51291f0ffb352ec3f4cc2455a85cfa3995946 (diff)
parentd992d3d9f3006f898dd0ad09458c85c66b23841c (diff)
downloadrust-60cb151be061f859feaf6cf0246f0189b3ad35a9.tar.gz
rust-60cb151be061f859feaf6cf0246f0189b3ad35a9.zip
Rollup merge of #21924 - steveklabnik:fix_try_docs, r=huonw
 This is now a Result, not an Option.
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/unwind.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt/unwind.rs b/src/libstd/rt/unwind.rs
index b37996fa9d9..e064663b9e7 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: