[Doc] Update to FrozenError from RuntimeError in Object#freeze
This commit is contained in:
parent
1ac68bba4e
commit
c080bb2284
Notes:
git
2021-04-02 02:10:22 +09:00
2
object.c
2
object.c
@ -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?.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user