summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-18 09:00:34 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-18 11:36:21 +0900
commita447563cf899f2a33511c12735160a8bbd0efecd (patch)
treee57080263dbad3a78eb8409d1601be6a7ff39a66
parentcf1ee151b1cf7553fd0fce86a39eed4a4133ae46 (diff)
[DOC] Added Exception.exception to Exception.new [ci skip]
-rw-r--r--error.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/error.c b/error.c
index af4dc23dde..fb8602350b 100644
--- a/error.c
+++ b/error.c
@@ -1003,7 +1003,8 @@ exc_init(VALUE exc, VALUE mesg)
/*
* call-seq:
- * Exception.new(msg = nil) -> exception
+ * Exception.new(msg = nil) -> exception
+ * Exception.exception(msg = nil) -> exception
*
* Construct a new Exception object, optionally passing in
* a message.