summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorzverok <zverok.offline@gmail.com>2019-12-21 22:21:20 +0200
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-22 23:17:39 +0900
commitd78fcfb7ab351fd4861e42985db34e9bda3509a7 (patch)
treeb3e0250b49135bc77ef1e5ec6d83b267216280eb /error.c
parente568bb5649a93c60aaa51c1e5308054079815bcc (diff)
Fix FrozenError#receiver and #initialize docs
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2768
Diffstat (limited to 'error.c')
-rw-r--r--error.c3
1 files changed, 2 insertions, 1 deletions
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
*