mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
66529e382f
commit
41d5072573
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Aug 30 02:48:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* object.c (rb_obj_freeze): update rdoc to mention RuntimeError
|
||||
(not TypeError any longer) would be raised. [ruby-dev:35982]
|
||||
|
||||
Sat Aug 30 01:55:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* bignum.c (bigdivmod): remove redundant code. a patch from
|
||||
|
|
4
object.c
4
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
|
||||
*/
|
||||
|
||||
|
|
Loading…
Reference in a new issue