зеркало из https://github.com/github/ruby.git
Fix FrozenError#receiver and #initialize docs
This commit is contained in:
Родитель
e568bb5649
Коммит
d78fcfb7ab
3
error.c
3
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
|
||||
*
|
||||
|
|
Загрузка…
Ссылка в новой задаче