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:
parent
1ac68bba4e
commit
c080bb2284
Notes:
git
2021-04-02 02:10:22 +09:00
1 changed files with 1 additions and 1 deletions
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…
Add table
Reference in a new issue