summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-08 13:50:10 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-08 13:50:10 +0000
commit63fe8b697cd886beecb06f4020cab58676aa2a80 (patch)
treeba8d6dfc4ea03ebb4beaeace0a3f421e93f5436b /error.c
parentd9d841e35319353b8ed7174e48af7d9f84197c9c (diff)
update doc and add test for SystemExit.new.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/error.c b/error.c
index 600be018fe..e2e36cec79 100644
--- a/error.c
+++ b/error.c
@@ -743,9 +743,13 @@ exc_equal(VALUE exc, VALUE obj)
/*
* call-seq:
- * SystemExit.new(status=0) -> system_exit
+ * SystemExit.new -> system_exit
+ * SystemExit.new(status) -> system_exit
+ * SystemExit.new(status, msg) -> system_exit
+ * SystemExit.new(msg) -> system_exit
*
- * Create a new +SystemExit+ exception with the given status.
+ * Create a new +SystemExit+ exception with the given status and message.
+ * If status is not given, EXIT_SUCCESS is used.
*/
static VALUE