1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
zzak 2013-09-26 15:41:02 +00:00
parent 8603fdcc62
commit ddb04eba87
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Fri Sep 27 00:39:27 2013 Zachary Scott <e@zzak.io>
* 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@zzak.io>
* ext/bigdecimal/bigdecimal.c: [DOC] several fixes by @chastell

View file

@ -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)