зеркало из https://github.com/github/ruby.git
Remove outdated proc.c binding comment.
Passing a proc as the second argument to eval is no longer supported. [Fix GH-1843] From: Tieg Zaharia <tieg.zaharia@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
58fbe69a5b
Коммит
365338d9d6
4
proc.c
4
proc.c
|
@ -2789,9 +2789,7 @@ env_clone(const rb_env_t *env, const rb_cref_t *cref)
|
|||
* call-seq:
|
||||
* prc.binding -> binding
|
||||
*
|
||||
* Returns the binding associated with <i>prc</i>. Note that
|
||||
* <code>Kernel#eval</code> accepts either a <code>Proc</code> or a
|
||||
* <code>Binding</code> object as its second parameter.
|
||||
* Returns the binding associated with <i>prc</i>.
|
||||
*
|
||||
* def fred(param)
|
||||
* proc {}
|
||||
|
|
Загрузка…
Ссылка в новой задаче