1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix FrozenError#receiver and #initialize docs

This commit is contained in:
zverok 2019-12-21 22:21:20 +02:00 committed by Nobuyoshi Nakada
parent e568bb5649
commit d78fcfb7ab
Notes: git 2019-12-22 23:18:04 +09:00

View file

@ -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
*