diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-26 15:41:02 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-26 15:41:02 +0000 |
commit | ddb04eba8736b7a3e11c2e8e38af2999b22dd1d0 (patch) | |
tree | f1a6054c1d29163d5e59aea83dbac8a29ee22b44 /struct.c | |
parent | 8603fdcc621f5d581fc8380ff87c5109e00ca754 (diff) | |
download | ruby-ddb04eba8736b7a3e11c2e8e38af2999b22dd1d0.tar.gz |
* struct.c: [DOC] grammar of ArgumentError in Struct.new [Bug #8936]
Patch by Prathamesh Sonpatki
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |