From 41d50725736df60e0118c337f8378b27497c7d94 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 29 Aug 2008 17:49:18 +0000 Subject: * object.c (rb_obj_freeze): update rdoc to mention RuntimeError (not TypeError any longer) would be raised. [ruby-dev:35982] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'object.c') diff --git a/object.c b/object.c index b796cfbf3c..36b99fc822 100644 --- a/object.c +++ b/object.c @@ -761,7 +761,7 @@ static st_table *immediate_frozen_tbl = 0; * obj.freeze => obj * * Prevents further modifications to obj. A - * TypeError will be raised if modification is attempted. + * RuntimeError will be raised if modification is attempted. * There is no way to unfreeze a frozen object. See also * Object#frozen?. * @@ -771,7 +771,7 @@ static st_table *immediate_frozen_tbl = 0; * * produces: * - * prog.rb:3:in `<<': can't modify frozen array (TypeError) + * prog.rb:3:in `<<': can't modify frozen array (RuntimeError) * from prog.rb:3 */ -- cgit v1.2.3