diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | error.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Fri Feb 12 12:20:56 2016 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * error.c (name_err_initialize, nometh_err_initialize): [DOC] fix + argument positions. optional parameters except for the message + are placed at the last. + Fri Feb 12 11:49:49 2016 Anthony Dmitriyev <antstorm@gmail.com> * net/ftp.rb: add NullSocket#closed? to fix closing not opened @@ -1127,7 +1127,7 @@ rb_name_error_str(VALUE str, const char *fmt, ...) /* * 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> @@ -1192,7 +1192,7 @@ name_err_local_variables(VALUE self) /* * call-seq: - * NoMethodError.new(msg, name [, args]) -> no_method_error + * NoMethodError.new([msg, *, name [, args]]) -> no_method_error * * Construct a NoMethodError exception for a method of the given name * called with the given arguments. The name may be accessed using |