Skip to content

Commit 6a2cd63

Browse files
committed
[DOC] Improve call-seq of Proc#call
1 parent f98bbb7 commit 6a2cd63

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

proc.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,13 +1068,12 @@ f_lambda(VALUE _)
10681068
* Document-method: Proc#yield
10691069
*
10701070
* call-seq:
1071-
* prc.call(params,...) -> obj
1072-
* prc[params,...] -> obj
1073-
* prc.(params,...) -> obj
1074-
* prc.yield(params,...) -> obj
1071+
* call(...) -> obj
1072+
* self[...] -> obj
1073+
* yield(...) -> obj
10751074
*
1076-
* Invokes the block, setting the block's parameters to the values in
1077-
* <i>params</i> using something close to method calling semantics.
1075+
* Invokes the block, setting the block's parameters to the arguments
1076+
* using something close to method calling semantics.
10781077
* Returns the value of the last expression evaluated in the block.
10791078
*
10801079
* a_proc = Proc.new {|scalar, *values| values.map {|value| value*scalar } }

0 commit comments

Comments
 (0)