ruby-changes:65728
From: Kenichi <ko1@a...>
Date: Fri, 2 Apr 2021 02:10:13 +0900 (JST)
Subject: [ruby-changes:65728] c080bb2284 (master): [Doc] Update to FrozenError from RuntimeError in Object#freeze
https://git.ruby-lang.org/ruby.git/commit/?id=c080bb2284 From c080bb2284c06fbc5e8090c27781228d487c4021 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya <kachick1@g...> Date: Fri, 2 Apr 2021 01:16:58 +0900 Subject: [Doc] Update to FrozenError from RuntimeError in Object#freeze --- object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/object.c b/object.c index 8e4c89b..c1e75d3 100644 --- a/object.c +++ b/object.c @@ -1287,7 +1287,7 @@ rb_obj_infect(VALUE victim, VALUE carrier) https://github.com/ruby/ruby/blob/trunk/object.c#L1287 * 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?. * -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/