diff options
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-03 23:58:18 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-03 23:58:18 +0000
commit02887a56e57b721463c3cda4c4912e56f68d3468 (patch)
parentb0cfa46bcea161a2907159c0cb228d869e4c1fa3 (diff)
doc: restore class documentation for Struct
* struct.c: restore class documentation for Struct that disappeared with r46663. Due to r46663, the class documentation for Struct disappeared. (The revision inserted the definition of `InitVM_Struct` between the rdoc and the definition of `Init_Struct`.) The docs are rendered for 2.1: <>, but not for later versions, see: <> (Same for `ri` pages). [ruby-core:79416] [Bug #13189] git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 files changed, 2 insertions, 0 deletions
diff --git a/struct.c b/struct.c
index cd6d05a..6303436 100644
--- a/struct.c
+++ b/struct.c
@@ -1158,6 +1158,8 @@ rb_struct_dig(int argc, VALUE *argv, VALUE self)
+ * Document-class: Struct
+ *
* A Struct is a convenient way to bundle a number of attributes together,
* using accessor methods, without having to write an explicit class.