зеркало из https://github.com/github/ruby.git
[DOC] Fixed explanation for Method#>> [Bug #16813] [ci skip]
This commit is contained in:
Родитель
0f5ae7a200
Коммит
ac2106acc2
4
proc.c
4
proc.c
|
@ -3530,8 +3530,8 @@ rb_method_compose_to_left(VALUE self, VALUE g)
|
|||
* meth >> g -> a_proc
|
||||
*
|
||||
* Returns a proc that is the composition of this method and the given <i>g</i>.
|
||||
* The returned proc takes a variable number of arguments, calls <i>g</i> with them
|
||||
* then calls this method with the result.
|
||||
* The returned proc takes a variable number of arguments, calls this method
|
||||
* with them then calls <i>g</i> with the result.
|
||||
*
|
||||
* def f(x)
|
||||
* x * x
|
||||
|
|
Загрузка…
Ссылка в новой задаче