summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-17 21:07:46 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-17 21:07:46 +0000
commit914efd0b60acc061b161faa4ebb8bce528793384 (patch)
tree309d77e8144ea771734c9ffd32ac602615fd34b1 /proc.c
parent410ae9d41bc12e5de6d870498ae37d142a6af673 (diff)
* proc.c (proc_lambda, unnamed_parameters): Small documentation fixes.
* re.c: ditto * string.c: ditto * time.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/proc.c b/proc.c
index 9babd5da4b..856c3ee9bb 100644
--- a/proc.c
+++ b/proc.c
@@ -528,10 +528,10 @@ proc_lambda(void)
/*
* call-seq:
- * prc === obj -> obj
+ * prc === obj -> result_of_proc
*
* Invokes the block, with <i>obj</i> as the block's parameter. It is
- * to allow a proc object to be a target of when clause in the case statement.
+ * to allow a proc object to be a target of +when+ clause in the case statement.
*/
static VALUE
@@ -728,7 +728,10 @@ unnamed_parameters(int arity)
* call-seq:
* proc.parameters -> array
*
- * returns the parameter information of this proc
+ * returns the parameter information of this proc.
+ *
+ * prc = lambda{|x, y=42, *rest|}
+ * prc.parameters #=> [[:req, :x], [:opt, :y], [:rest, :rest]]
*/
static VALUE