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

ruby-changes:43092

From: eregon <ko1@a...>
Date: Thu, 26 May 2016 05:01:43 +0900 (JST)
Subject: [ruby-changes:43092] eregon:r55166 (trunk): * class.c (rb_define_class): Fix documentation.

eregon	2016-05-26 05:01:24 +0900 (Thu, 26 May 2016)

  New Revision: 55166

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

  Log:
    * class.c (rb_define_class): Fix documentation.

  Modified files:
    trunk/ChangeLog
    trunk/class.c
Index: class.c
===================================================================
--- class.c	(revision 55165)
+++ class.c	(revision 55166)
@@ -630,12 +630,12 @@ rb_class_inherited(VALUE super, VALUE kl https://github.com/ruby/ruby/blob/trunk/class.c#L630
  * Defines a top-level class.
  * \param name   name of the class
  * \param super  a class from which the new class will derive.
- *               NULL means \c Object class.
  * \return the created class
  * \throw TypeError if the constant name \a name is already taken but
  *                  the constant is not a \c Class.
- * \throw NameError if the class is already defined but the class can not
+ * \throw TypeError if the class is already defined but the class can not
  *                  be reopened because its superclass is not \a super.
+ * \throw ArgumentError if the \a super is NULL.
  * \post top-level constant named \a name refers the returned class.
  *
  * \note if a class named \a name is already defined and its superclass is
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55165)
+++ ChangeLog	(revision 55166)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu May 26 05:00:13 2016  Benoit Daloze  <eregontp@g...>
+
+	* class.c (rb_define_class): Fix documentation.
+
 Wed May 25 20:50:12 2016  NARUSE, Yui  <naruse@r...>
 
 	* re.c (unescape_nonascii): scan hex up to only 3 characters.

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

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