summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-25 17:37:23 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-25 17:37:23 +0000
commitfd69ec05c0726e8e22714e5d351db34964c4e174 (patch)
tree8945b3231c5792fa04552d6fb4e9d67188a73e8a /struct.c
parent0a1e564683cbd9ce3728c3c1ef03c76df15e4696 (diff)
merge revision(s) 57522: [Backport #13189]
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: <https://docs.ruby-lang.org/en/2.1.0/Struct.html>, but not for later versions, see: <https://docs.ruby-lang.org/en/2.2.0/Struct.html> (Same for `ri` pages). [ruby-core:79416] [Bug #13189] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/struct.c b/struct.c
index f814415830..264c02a52f 100644
--- a/struct.c
+++ b/struct.c
@@ -1041,6 +1041,8 @@ rb_struct_size(VALUE s)
}
/*
+ * 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.
*