From 86babb4d02a2560f4b493ae9d099b715f962feca Mon Sep 17 00:00:00 2001 From: hsbt Date: Wed, 4 Nov 2015 06:46:05 +0000 Subject: * class.c: fix documentation for rb_define_class{_id}_under. [fix GH-991][ci skip] Patch by @kachick git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- class.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'class.c') diff --git a/class.c b/class.c index 7a9db63dcc..f95890bbc4 100644 --- a/class.c +++ b/class.c @@ -666,7 +666,7 @@ rb_define_class(const char *name, VALUE super) * \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 char *name, VALUE super) * \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. * -- cgit v1.2.3