summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-18 08:59:47 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-18 08:59:47 +0900
commite14cba354ca031b48de0720fe0d96c04d9bb3439 (patch)
tree834f3442dc38041b1d43bf0cb485521dddd1e8c9
parentcc46d514dcc2d61f7bc8a7b1ff01dd01fd10dd9b (diff)
[DOC] argument to Exception#excepton is optional [ci skip]
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index e3d9974555..af4dc23dde 100644
--- a/error.c
+++ b/error.c
@@ -1022,7 +1022,7 @@ exc_initialize(int argc, VALUE *argv, VALUE exc)
* Document-method: exception
*
* call-seq:
- * exc.exception(string) -> an_exception or exc
+ * exc.exception([string]) -> an_exception or exc
*
* With no argument, or if the argument is the same as the receiver,
* return the receiver. Otherwise, create a new