From d78fcfb7ab351fd4861e42985db34e9bda3509a7 Mon Sep 17 00:00:00 2001 From: zverok Date: Sat, 21 Dec 2019 22:21:20 +0200 Subject: [PATCH] Fix FrozenError#receiver and #initialize docs --- error.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/error.c b/error.c index bc5539c328..9557d8552b 100644 --- a/error.c +++ b/error.c @@ -1482,7 +1482,7 @@ err_init_recv(VALUE exc, VALUE recv) * method. * * a = [].freeze - * raise FrozenError.new("can't modify frozen array", a) + * raise FrozenError.new("can't modify frozen array", receiver: a) */ static VALUE @@ -1500,6 +1500,7 @@ frozen_err_initialize(int argc, VALUE *argv, VALUE self) } /* + * Document-method: FrozenError#receiver * call-seq: * frozen_error.receiver -> object *