diff --git a/ChangeLog b/ChangeLog index dac9942d50..d4ff94d61f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Sep 27 00:39:27 2013 Zachary Scott + + * struct.c: [DOC] grammar of ArgumentError in Struct.new [Bug #8936] + Patch by Prathamesh Sonpatki + Thu Sep 26 22:11:56 2013 Zachary Scott * ext/bigdecimal/bigdecimal.c: [DOC] several fixes by @chastell diff --git a/struct.c b/struct.c index ea70abcfbb..28d32c38a2 100644 --- a/struct.c +++ b/struct.c @@ -373,7 +373,8 @@ rb_struct_define_under(VALUE outer, const char *name, ...) * 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)