aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-08-11 19:42:59 -0700
committerJeremy Evans <code@jeremyevans.net>2019-08-12 09:56:35 -0700
commit404850e13446c79fb6142f1b32b219753e5cd726 (patch)
tree7ad5ca7ffdf16a25171231df802f5d03ee94b7be /error.c
parent3979f22cc1a224bad5b8f14610db253660aa974c (diff)
downloadruby-404850e13446c79fb6142f1b32b219753e5cd726.tar.gz
Remove documentation that fatal cannot be rescued [ci skip]
You can rescue it: f = ObjectSpace.each_object(Class){|c| break c if c.name == 'fatal'} begin raise f rescue f 2 end # => 2 It's not a good idea to rescue fatal exceptions you didn't generate yourself, though. Fixes [Bug #10691]
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index 8834100cfd..90a9c44939 100644
--- a/error.c
+++ b/error.c
@@ -2360,7 +2360,7 @@ syserr_eqq(VALUE self, VALUE exc)
* Document-class: fatal
*
* fatal is an Exception that is raised when Ruby has encountered a fatal
- * error and must exit. You are not able to rescue fatal.
+ * error and must exit.
*/
/*