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

ruby-changes:40364

From: hsbt <ko1@a...>
Date: Wed, 4 Nov 2015 15:46:13 +0900 (JST)
Subject: [ruby-changes:40364] hsbt:r52445 (trunk): * class.c: fix documentation for rb_define_class{_id}_under.

hsbt	2015-11-04 15:46:05 +0900 (Wed, 04 Nov 2015)

  New Revision: 52445

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

  Log:
    * class.c: fix documentation for rb_define_class{_id}_under.
      [fix GH-991][ci skip] Patch by @kachick

  Modified files:
    trunk/ChangeLog
    trunk/class.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52444)
+++ ChangeLog	(revision 52445)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Nov  4 15:45:59 2015  SHIBATA Hiroshi  <hsbt@r...>
+
+	* class.c: fix documentation for rb_define_class{_id}_under.
+	  [fix GH-991][ci skip] Patch by @kachick
+
 Wed Nov  4 15:40:45 2015  SHIBATA Hiroshi  <hsbt@r...>
 
 	* method.h: fix typo. Patch by @davydovanton
Index: class.c
===================================================================
--- class.c	(revision 52444)
+++ class.c	(revision 52445)
@@ -666,7 +666,7 @@ rb_define_class(const char *name, VALUE https://github.com/ruby/ruby/blob/trunk/class.c#L666
  * \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.
  * \post top-level constant named \a name refers the returned class.
  *
@@ -689,7 +689,7 @@ rb_define_class_under(VALUE outer, const https://github.com/ruby/ruby/blob/trunk/class.c#L689
  * \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.
  * \post top-level constant named \a name refers the returned class.
  *

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

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