summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-26 12:23:25 +0000
committerstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-26 12:23:25 +0000
commitf889eba1d4b4d4f9b6a71589ddb800f23440d047 (patch)
treec8a7f637faa15c5aa49a8ad03827eb14c6866b5a /proc.c
parent96353b97a5b2fd73d351ccaa6cc1f3ff296f2d05 (diff)
proc.c: [DOC] improve docs for {Method,Proc}#===
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/proc.c b/proc.c
index 8969f3b1db..bf5921e9ce 100644
--- a/proc.c
+++ b/proc.c
@@ -805,9 +805,9 @@ rb_block_lambda(void)
* call-seq:
* proc === obj -> result_of_proc
*
- * Invokes the block with +obj+ as the proc's parameter like Proc#call. It
- * is to allow a proc object to be a target of +when+ clause in a case
- * statement.
+ * Invokes the block with +obj+ as the proc's parameter like Proc#call.
+ * This allows a proc object to be the target of a +when+ clause
+ * in a case statement.
*/
/* CHECKME: are the argument checking semantics correct? */
@@ -2087,15 +2087,15 @@ method_clone(VALUE self)
* call-seq:
* method === obj -> result_of_method
*
- * Invokes the method with +obj+ as the parameter like #call. It
- * is to allow a method object to be a target of +when+ clause in a case
- * statement.
+ * Invokes the method with +obj+ as the parameter like #call.
+ * This allows a method object to be the target of a +when+ clause
+ * in a case statement.
*
* require 'prime'
*
* case 1373
* when Prime.method(:prime?)
- * # ....
+ * # ...
* end
*/