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

[DOC] Return obj may be different from 1st argument [ci skip]

This commit is contained in:
Kazuhiro NISHIYAMA 2019-08-30 12:01:45 +09:00
parent ba9adcc175
commit 1680bd4e4f
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

6
proc.c
View file

@ -2411,11 +2411,11 @@ umethod_bind(VALUE method, VALUE recv)
/*
* call-seq:
* umeth.bind_call(obj, args, ...) -> obj
* umeth.bind_call(recv, args, ...) -> obj
*
* Bind <i>umeth</i> to <i>obj</i> and then invokes the method with the
* Bind <i>umeth</i> to <i>recv</i> and then invokes the method with the
* specified arguments.
* This is semantically equivalent to <code>umeth.bind(obj).call(args, ...)</code>.
* This is semantically equivalent to <code>umeth.bind(recv).call(args, ...)</code>.
*/
static VALUE
umethod_bind_call(int argc, VALUE *argv, VALUE method)