From 6bbe44a39a1c4604a6d72e48f9a412bf30ee9feb Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 12 Feb 2016 03:21:17 +0000 Subject: error.c: fix doc [ci skip] * error.c (name_err_initialize, nometh_err_initialize): [DOC] fix argument positions. optional parameters except for the message are placed at the last. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ error.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 33cb0a81b9..2945679707 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Feb 12 12:20:56 2016 Nobuyoshi Nakada + + * 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 * net/ftp.rb: add NullSocket#closed? to fix closing not opened diff --git a/error.c b/error.c index f88c19a328..204a9a6302 100644 --- a/error.c +++ b/error.c @@ -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 name * parameter may subsequently be examined using the NameError.name @@ -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 -- cgit v1.2.3