ruby-changes:30979
From: zzak <ko1@a...>
Date: Fri, 27 Sep 2013 00:41:11 +0900 (JST)
Subject: [ruby-changes:30979] zzak:r43058 (trunk): * struct.c: [DOC] grammar of ArgumentError in Struct.new [Bug #8936]
zzak 2013-09-27 00:41:02 +0900 (Fri, 27 Sep 2013) New Revision: 43058 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43058 Log: * struct.c: [DOC] grammar of ArgumentError in Struct.new [Bug #8936] Patch by Prathamesh Sonpatki Modified files: trunk/ChangeLog trunk/struct.c Index: ChangeLog =================================================================== --- ChangeLog (revision 43057) +++ ChangeLog (revision 43058) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Sep 27 00:39:27 2013 Zachary Scott <e@z...> + + * struct.c: [DOC] grammar of ArgumentError in Struct.new [Bug #8936] + Patch by Prathamesh Sonpatki + Thu Sep 26 22:11:56 2013 Zachary Scott <e@z...> * ext/bigdecimal/bigdecimal.c: [DOC] several fixes by @chastell Index: struct.c =================================================================== --- struct.c (revision 43057) +++ struct.c (revision 43058) @@ -373,7 +373,8 @@ rb_struct_define_under(VALUE outer, cons https://github.com/ruby/ruby/blob/trunk/struct.c#L373 * The last two forms create a new instance of a struct subclass. The number * of +value+ parameters must be less than or equal to the number of * attributes defined for the structure. Unset parameters default to +nil+. - * Passing too many parameters will raise an ArgumentError. + * Passing more parameters than number of attributes will raise + * an ArgumentError. * * # Create a structure named by its constant * Customer = Struct.new(:name, :address) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/