1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[Doc] Update to FrozenError from RuntimeError in Object#freeze

This commit is contained in:
Kenichi Kamiya 2021-04-02 01:16:58 +09:00 committed by Jeremy Evans
parent 1ac68bba4e
commit c080bb2284
Notes: git 2021-04-02 02:10:22 +09:00

View file

@ -1287,7 +1287,7 @@ rb_obj_infect(VALUE victim, VALUE carrier)
* obj.freeze -> obj
*
* Prevents further modifications to <i>obj</i>. A
* RuntimeError will be raised if modification is attempted.
* FrozenError will be raised if modification is attempted.
* There is no way to unfreeze a frozen object. See also
* Object#frozen?.
*