summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-25 00:39:29 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-25 00:39:29 (GMT)
commit94bdb010f6375e4df6b7f19e4e6f277d56131452 (patch)
tree4b7f53978d4b69d443e2bffe820ee109152a2e5d /proc.c
parentb78b66a97610449c115848c58b9b75b5abc60c8b (diff)
update document [ci skip]
* error.c (ArgumentError): [DOC] update document following [Feature #9025] * proc.c (proc_call, proc_curry): [DOC] ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/proc.c b/proc.c
index 818853e..b5913d6 100644
--- a/proc.c
+++ b/proc.c
@@ -749,7 +749,7 @@ rb_block_clear_env_self(VALUE proc)
*
* <em>produces:</em>
*
- * prog.rb:4:in `block in <main>': wrong number of arguments (3 for 2) (ArgumentError)
+ * prog.rb:4:in `block in <main>': wrong number of arguments (given 3, expected 2) (ArgumentError)
* from prog.rb:5:in `call'
* from prog.rb:5:in `<main>'
*
@@ -2713,16 +2713,16 @@ curry(VALUE dummy, VALUE args, int argc, VALUE *argv, VALUE passed_proc)
*
* b = lambda {|x, y, z| (x||0) + (y||0) + (z||0) }
* p b.curry[1][2][3] #=> 6
- * p b.curry[1, 2][3, 4] #=> wrong number of arguments (4 for 3)
- * p b.curry(5) #=> wrong number of arguments (5 for 3)
- * p b.curry(1) #=> wrong number of arguments (1 for 3)
+ * p b.curry[1, 2][3, 4] #=> wrong number of arguments (given 4, expected 3)
+ * p b.curry(5) #=> wrong number of arguments (given 5, expected 3)
+ * p b.curry(1) #=> wrong number of arguments (given 1, expected 3)
*
* b = lambda {|x, y, z, *w| (x||0) + (y||0) + (z||0) + w.inject(0, &:+) }
* p b.curry[1][2][3] #=> 6
* p b.curry[1, 2][3, 4] #=> 10
* p b.curry(5)[1][2][3][4][5] #=> 15
* p b.curry(5)[1, 2][3, 4][5] #=> 15
- * p b.curry(1) #=> wrong number of arguments (1 for 3)
+ * p b.curry(1) #=> wrong number of arguments (given 1, expected 3)
*
* b = proc { :foo }
* p b.curry[] #=> :foo