ruby-changes:50041
From: kazu <ko1@a...>
Date: Fri, 2 Feb 2018 20:03:28 +0900 (JST)
Subject: [ruby-changes:50041] kazu:r62159 (trunk): Fix call-seq of NameError.new
kazu 2018-02-02 20:03:23 +0900 (Fri, 02 Feb 2018) New Revision: 62159 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62159 Log: 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. Modified files: trunk/error.c Index: error.c =================================================================== --- error.c (revision 62158) +++ error.c (revision 62159) @@ -1355,7 +1355,7 @@ static VALUE name_err_initialize_options https://github.com/ruby/ruby/blob/trunk/error.c#L1355 /* * 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> -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/