summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-02 11:03:23 (GMT)
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-02 11:03:23 (GMT)
commit02d7ad9722f4a32085e4a7f6d59b27ecaadb486c (patch)
treee9709a6356d36516a98c9e8b6e0e9dda3ddbe4dd /error.c
parent1659a1660ce32c7ab926586a270c38ddfd0764e4 (diff)
Fix call-seq of NameError.new
`NameError.new(1,2,3)` raises `wrong number of arguments (given 2, expected 0..1) (ArgumentError)` in `StrandardError#initialize`, so NameError can't accept 3 or more arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 7cbbf10..eebfa1d 100644
--- a/error.c
+++ b/error.c
@@ -1355,7 +1355,7 @@ static VALUE name_err_initialize_options(int argc, VALUE *argv, VALUE self, VALU
/*
* call-seq:
- * NameError.new([msg, *, name]) -> name_error
+ * NameError.new(msg [, name]) -> name_error
*
* Construct a new NameError exception. If given the <i>name</i>
* parameter may subsequently be examined using the <code>NameError.name</code>