summaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-29 17:49:18 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-29 17:49:18 +0000
commit8b9d53ed9d854fa8f97e0d5cc2242df1d72f3468 (patch)
tree76f9c348804dd2d3873e81ed7e2dddfc3a32cc1b /object.c
parente605aab0f8d248696d821641adc732434e3b7379 (diff)
downloadruby-8b9d53ed9d854fa8f97e0d5cc2242df1d72f3468.tar.gz
ruby-8b9d53ed9d854fa8f97e0d5cc2242df1d72f3468.tar.xz
ruby-8b9d53ed9d854fa8f97e0d5cc2242df1d72f3468.zip
* object.c (rb_obj_freeze): update rdoc to mention RuntimeError
(not TypeError any longer) would be raised. [ruby-dev:35982] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/object.c b/object.c
index b796cfbf3..36b99fc82 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 <i>obj</i>. A
- * <code>TypeError</code> will be raised if modification is attempted.
+ * <code>RuntimeError</code> will be raised if modification is attempted.
* There is no way to unfreeze a frozen object. See also
* <code>Object#frozen?</code>.
*
@@ -771,7 +771,7 @@ static st_table *immediate_frozen_tbl = 0;
*
* <em>produces:</em>
*
- * prog.rb:3:in `<<': can't modify frozen array (TypeError)
+ * prog.rb:3:in `<<': can't modify frozen array (RuntimeError)
* from prog.rb:3
*/