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:
parent
e568bb5649
commit
d78fcfb7ab
Notes:
git
2019-12-22 23:18:04 +09:00
1 changed files with 2 additions and 1 deletions
3
error.c
3
error.c
|
@ -1482,7 +1482,7 @@ err_init_recv(VALUE exc, VALUE recv)
|
||||||
* method.
|
* method.
|
||||||
*
|
*
|
||||||
* a = [].freeze
|
* a = [].freeze
|
||||||
* raise FrozenError.new("can't modify frozen array", a)
|
* raise FrozenError.new("can't modify frozen array", receiver: a)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
@ -1500,6 +1500,7 @@ frozen_err_initialize(int argc, VALUE *argv, VALUE self)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
* Document-method: FrozenError#receiver
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* frozen_error.receiver -> object
|
* frozen_error.receiver -> object
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue