[前][次][番号順一覧][スレッド一覧]

ruby-changes:45449

From: normal <ko1@a...>
Date: Sat, 4 Feb 2017 08:58:21 +0900 (JST)
Subject: [ruby-changes:45449] normal:r57522 (trunk): doc: restore class documentation for Struct

normal	2017-02-04 08:58:18 +0900 (Sat, 04 Feb 2017)

  New Revision: 57522

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57522

  Log:
    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]

  Modified files:
    trunk/struct.c
Index: struct.c
===================================================================
--- struct.c	(revision 57521)
+++ struct.c	(revision 57522)
@@ -1158,6 +1158,8 @@ rb_struct_dig(int argc, VALUE *argv, VAL https://github.com/ruby/ruby/blob/trunk/struct.c#L1158
 }
 
 /*
+ *  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.
  *

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]