path: root/class.c
diff options
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-25 20:01:24 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-25 20:01:24 +0000
commite4cab0fe95979120131cc6e269d4dc63caf30e65 (patch)
treefd1a1c849a5478987472efdeefc0d24c43b4d372 /class.c
parente45cf75f9a8f224dc015abfe33e4fa6c019a5ada (diff)
* class.c (rb_define_class): Fix documentation.
git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/class.c b/class.c
index 9d91cf7..1215b6d 100644
--- a/class.c
+++ b/class.c
@@ -630,12 +630,12 @@ rb_class_inherited(VALUE super, VALUE klass)
* 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