summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorKenichi Kamiya <kachick1@gmail.com>2021-04-02 01:16:58 +0900
committerJeremy Evans <code@jeremyevans.net>2021-04-01 10:10:02 -0700
commitc080bb2284c06fbc5e8090c27781228d487c4021 (patch)
tree5f7f56d36db7c6d1f162dc676caf4b0d503902ae /object.c
parent1ac68bba4ef9e51c383ad9bad21d41a5ec8c0869 (diff)
[Doc] Update to FrozenError from RuntimeError in Object#freeze
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4346
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index 8e4c89b974..c1e75d3854 100644
--- a/object.c
+++ b/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?.
*